How can I tell gawk to print out everything else my search finds? So once it finds all the lines in the file that contain "-1", I want it to print all the rest of the lines. Like:
Code:
cat test-file | grep -v '\-1'
I want this done using gawk
Code:
cat test-file | gawk -F '|' '{OFS="|";IGNORECASE=1;} ($4) ~/\-1/ {print $0}'
??