Question: Using bash-Linux read time_of_interest read distance_max awk -v distance_max=$distance_max 'if ($3 =$3-distance_max && $4 =$4-distance_max) {printf %s %s %s %s %s %s, $1,$2,$3,$4,$5,$6}' ${myfile} >
Using bash-Linux
read time_of_interest
read distance_max
awk -v distance_max="$distance_max" 'if ($3<=$3+distance_max && $3>=$3-distance_max && $4<=$4+distance_max && $4>=$4-distance_max) {printf "%s %s %s %s %s %s", $1,$2,$3,$4,$5,$6}' ${myfile} > ${myfile_out}
I want to filter based on the time of interest so how do I add another condition that check the time of interest before printing the rows.
Thank you in advance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
