October 1st, 2013, 04:44 PM
Displaying specific lines using grep
Display all lines that have only 4, 5, 6, 7 and 9 in the zip code. The file is in columns. Im trying to use grep. Can anyone give me the correct syntax?
October 1st, 2013, 11:51 PM
Is there anything else on the line apart from zip codes, like say house numbers ?
1600 Pennsylvania Ave NW, Washington, D.C., DC 20500, United States
This line has a 6, but it isn't in the zip code.
October 2nd, 2013, 08:54 AM
I suspect that awk would be better fo this, using a regex (~) on the column in question.
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc