Excluding a string in awk when printing
Hi all,
Lets say I have a file that have 4 columns and 400 rows in it, and I want to print out all the rows and columns except the one with the entry 'Suzana' in it..how do I do it? I'm not sure how to exclude the rows containing Suzana and printing out the rest using awk..can I use substr for this? Thanks! |
Quote:
Code:
awk '$0 !~ /Suzana/ { print }' file Code:
grep -v "Suzana" file |
Quote:
Code:
awk '!/Suzanna/' file Cheers, Tink |
All times are GMT -5. The time now is 12:41 PM. |