in reply to grep -P

It uses an external library called pcre, and I think the feature is not always compiled in grep.

If you want to use real perl expressions with grep, an alternative to gnu grep is to use one of the several grep clones implemented in perl, such as mine.

Replies are listed 'Best First'.
Re^2: grep -P
by tomazos (Deacon) on Jun 25, 2006 at 21:25 UTC
    Interesting...

    $ apt-cache search pcre libpcre3 - Perl 5 Compatible Regular Expression Library - runtime file +s libpcre3-dev - Perl 5 Compatible Regular Expression Library - developm +ent files libpcrecpp0 - Perl 5 Compatible Regular Expression Library - C++ runti +me files pcregrep - grep utility that uses perl 5 compatible regexes. pgrep - Dummy package for transition to pcregrep

    I suppose pcregrep or pgrep might somehow help.

    -Andrew.