Re: Perl Regex with unix grep command

2011-09-03 Thread Shlomi Fish
Hi all, On Sat, 03 Sep 2011 17:15:51 -0400 Shawn H Corey wrote: > On 11-09-03 05:01 PM, Jon Forsyth wrote: > > Hello, > > > > According to the grep manual page I can use the -P option to use Perl > > regular expressions as follows: > > > > grep -P PERL_REGEX INPUT_FILE > > > > however, I cannot

Re: Perl Regex with unix grep command

2011-09-03 Thread Uri Guttman
> "JF" == Jon Forsyth writes: JF> According to the grep manual page I can use the -P option to use JF> Perl regular expressions as follows: JF> grep -P PERL_REGEX INPUT_FILE just to let you know, nothing but perl can run perl regexes. all the ones that claim it are doing subsets and

Re: Perl Regex with unix grep command

2011-09-03 Thread Shawn H Corey
On 11-09-03 05:01 PM, Jon Forsyth wrote: Hello, According to the grep manual page I can use the -P option to use Perl regular expressions as follows: grep -P PERL_REGEX INPUT_FILE however, I cannot get the following pattern to match a literal dollar sign: grep -P makan\$ file.txt # You ha

Perl Regex with unix grep command

2011-09-03 Thread Jon Forsyth
Hello, According to the grep manual page I can use the -P option to use Perl regular expressions as follows: grep -P PERL_REGEX INPUT_FILE however, I cannot get the following pattern to match a literal dollar sign: grep -P makan\$ file.txt when I know this pattern is in the file. It matches