[SLL] OT need an egrep regexp clue

2012-01-24 Thread William Kreuter
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

Re: [SLL] OT need an egrep regexp clue

2012-01-24 Thread Alexandr Normuradov
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.

Re: [SLL] OT need an egrep regexp clue

2012-01-24 Thread Billy
On Tue, 2012-01-24 at 11:12 -0600, Alexandr Normuradov wrote: use this one awk -F, '{if ($3 == 201110) print $0}' bob.csv Sincerely, Alexandr Normuradov Thank you, Alexandr! And speaking of obvious solutions, it also beats me why I just didn't do: egrep '^.*;.*;201110' (My original