I am running a shell script under which i am running program which is writing output data on STDOUT and from there i am capturing the output and redirecting it into a file. But that program writes a lot of data which i need to filter out when i am writing it into a file
test -d $data | grep "^[A-Z]*|[0-9]*" >> $OUT_FILE
Now in this output on row 3 i am getting a value on which i want to have a check if that values is less than 43564 then skip the row.
test -d $data | grep "^[A-Z]*|[0-9]*" | awk -F "|" 'if($3 >= 43564){print $0}'>> $OUT_FILE
But this is not working for me , suggest me what wrong i am doing