DLSLUG Notes, 6-Sept-2007: ATTACK of the Nifties!!!

2007-09-07 Thread Ted Roche
Bill McGonigle hosted the September meeting the Dartmouth - Lake Sunapee Linux User Group [1], held as usual on the first Thursday of the month, but at a different location: the Dartmouth Regional Technology Center[2]. Seven members attended. The night was announced as "Nifties:" short presentatio

Re: a simple question about grep

2007-09-07 Thread Ben Scott
On 9/7/07, Tom Buskey <[EMAIL PROTECTED]> wrote: >> egrep -P "^\*(?!INDICATOR)" filename.txt > > GNU egrep 2.5.1 doesn't work: > $ egrep '^\*(?!INDICATOR)' z > $ You need to specify -P (or --perl) to turn on support for Perl regular expression extensions.Otherwise it will interpret the "(?

Re: a simple question about grep

2007-09-07 Thread Kent Johnson
Bill Ricker wrote: >> Or, if you only have an old grep, but do have Perl, the following should >> work: > > The Andy and the "ack" project have built a better grep with perl. Cool. By default ack ignores plain text files, so you have to tell it to include them even when explicitly specifying

Re: a simple question about grep

2007-09-07 Thread Tom Buskey
On 9/6/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > > Tom Buskey wrote: > > > > > > On 9/6/07, *G.O.* <[EMAIL PROTECTED] > > > wrote: > > > > egrep "^\*[^INDICATOR]" filename.txt > > That excludes lines beginning with * and any of the characters INDCATOR, > i.e. *N, *

Re: a simple question about grep

2007-09-07 Thread Shawn K. O'Shea
Will if you're going to go into 3-letter tools that start with 'a' that can do the requested task, then I'm just going to have to tell everyone how to do it with awk awk '/^\*/ && !/^\*INDICATOR/ { print $0 }' file awk takes a pattern and then a set of things to do with lines that match that pat