I would like to grep a word and then find the second column in the line and check if it is bigger than a value. Is yes, I want to print the previous line.
Ex:
In
Combining sed & awk you get this: sed 'N;s/\n/ /' < file |awk '$3>1{print $1}'
sed 'N;s/\n/ /' < file |awk '$3>1{print $1}'
sed 'N;s/\n/ / : Combine 1st and 2nd line and replace next line char with space
sed 'N;s/\n/ /
awk '$3>1{print $1}': print $1(1st column) if $3(3rd column's value is > 1)
awk '$3>1{print $1}'