Reg ex - awk - grep from getline result [closed]

Solution 1:

Bit confused by your command. If you just want to divide and grep that output,

| awk '{ print $1 / 33.7 }' | grep ...

Will work.

If you're trying to do something else (like only output parts of rows based on this calculation, you'd be better off doing the whole thing inside awk:

| awk '($1 / 33.7 > 2) { print $4 }'