use this one awk -F, '{if ($3 == "201110") print $0}' bob.csv
Sincerely, Alexandr Normuradov On 24 January 2012 11:05, William Kreuter <bil...@drizzle.com> wrote: > I want to select every line from a csv file which has the literal "201110" > in the third field. Neither of the following do it. > > egrep -e '^{.*;}{2}201110' filename.csv > > egrep -E '^{.*;}{2}201110' filename.csv > > I haven't really figured out the use of curly braces. It seems that they're > for both grouping (as in the left pair on these lines) and repetition (as in > the right pair). My impression right now is that it's one, or both, of the > curly-brace pairs which is doing something different than I want. > > I'm by no means wedded to egrep, if sed or awk or something can do it in a > few keystrokes. > > Billy