• Notice regarding image hosts and attachments. See here.

AWK

Soldato
Joined
24 Nov 2002
Posts
16,376
Location
38.744281°N 104.846806°W
I tried to help someone with something quick this morning to save writing a program:

awk -F\t, '{ if ($1 == "10") print $0 }' file.text

That is, output lines that have the first column as "10" But it didn't work - it's been a ahilwe.

I actually want to check two columns, but wanted this to work first.

Any ideas?
 
Last edited:
Back
Top Bottom