Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by site80443 for Forcing Bash to use Perl RegEx Engine

One could use pcregrep. It comes with the package pcre in CentOS and pcregrep in Ubuntu.

grep -P could have this issue depending on the OS / version:

-P, --perl-regexp
              Interpret PATTERN as a Perl regular expression.  This is highly experimental and grep -P may warn of unimplemented features.

Viewing all articles
Browse latest Browse all 3

Trending Articles