Really simple question. I simply need to remove lines from a list when there are less than 3 columns
Eg:
a b c
a b <--- This one needs to disappear
a b c
I'm pretty sure awk NF does it, however I can't seem to get it right.
Thanks in advance!
sed, grep, awk all can do this job. since you prefer awk, see if this helps?
awk 'NF>=3' file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With