27.17 Finding a Character in a ColumnHere's an idea for finding lines that have a given character in a column. Use the following simple awk ( 33.11 ) command:
% where c is the character you're searching for, and n is the column you care about.
Where would you do this? If you're processing a file with very strict
formatting, this might be useful; for example, you might have a
telephone list with a If your data has any TAB characters, the columns might not be where you expect. In that case, use expand ( 41.4 ) on the file, then pipe it to awk . - , |
|