How can I do a 'where' clause in Linux shell?
Posted
by
Hoa
on Stack Overflow
See other posts from Stack Overflow
or by Hoa
Published on 2012-03-24T08:38:35Z
Indexed on
2012/03/24
11:30 UTC
Read the original article
Hit count: 162
I have a CSV file and I would like to filter all the lines where the 19th column has two or more characters. I know the individual pieces but can't figure out how to glue them together. First I have to cat the file. The following prints the 19th column
awk -F "," '{print $19}' file.txt
awk also has length and ifs
And I know it all has to be glued together using pipes. I'm just getting stuck at the exact syntax since I have not done much bash programming before.
© Stack Overflow or respective owner