This might be the most common question, as it has been asked many times but I also tried different ways e.g used -lt or without {}
But I still get confused. I am using multiple "&&" conditions in IF but it seems like my script does not follow these conditions and simply does the task (copy the files) even if it does not fulfill if condition. All of these variables used in the below lines are float or negative numbers.
if [[ "${time}" > 1 ]] && [[ "${time}" < "10" ]] && [[ "${s_arr}" > "0" ]] && [[
"${stlo}" < "105" ]] && [[ "${stlo}" > "104.2" ]]
then
cp $event $output/$day'_'$event'.sac'
fi