Re: grep command or operator



On 2009-03-30, guzzijason <jasonwtucker@xxxxxxxxx> wrote:

I'm sorry I was to busy to think out my response in a way that didn't
upset you. Yes... I'm *well* aware of the significance of the "e" in
"egrep". My point was, that instead of using '/usr/xpg4/bin/grep',
which can handle regex - but in my experience has not always been
available, depending on how the system was built - I simply tend to
use 'egrep' instead. I guess that in my haste, I didn't make that
clear. Or I didn't think it mattered. Probably the latter. :-)

You sounded like you were surprised by the better handling of regexpes
with egrep, so I just wanted to point that egrep was in fact grep with
support for regular expressions ;)



--
| Jakov Sosic | ICQ: 28410271 | PGP: 0x965CAE2D |
=================================================================
| start fighting cancer -> http://www.worldcommunitygrid.org/ |
.



Relevant Pages

  • Re: [Q] $ARGV, <>, and command-line Perl
    ... find, the command whose output you are processing, can take a regex ... I've left the perl ... simply be performed by egrep (the egrep provides an efficient first-pass ...
    (comp.lang.perl.misc)
  • Re: egrep logical OR
    ... You've got to watch out when your regex begins with a "-" because grep ... and egrep can pick this up as an option. ...
    (comp.unix.shell)
  • Re: how to search/replace text in mutliple files?
    ... I am completely at a loss how to use a regex to search for whitespace. ... > egrep, they match exactly nothing. ... grep regex'es are not perl regex'es: try 'e +w' to match multiple ...
    (Fedora)
  • Re: awk & shell variables
    ... I am trying to check for a process that has the UID (1st ... Or you can user a regex inside the " " after egrep. ...
    (comp.unix.shell)
  • Re: how to search/replace text in mutliple files?
    ... >them work, although the regex editor in Kate seems to do the job, when I copy ... >egrep, they match exactly nothing. ... >grep 'e w' test.file ... >different lengths of whitespace, etc., but since I can't even search for ONE ...
    (Fedora)