[clug] Circumflex

Bryan Kilgallin (iiNet) kilgallin at iinet.net.au
Sat Aug 19 14:13:33 UTC 2017

Thanks Eyal:

> I think that the '\d' notation is a Perl extension, so try
>      grep -P ^\d'> 

Yes, that worked!

> Note that 'egrep' is short for 'grep -E' (extended regex) and you cannot 
> use '-E' and '-P'
> together as they have conflicting rules.

I recall reading that egrep had a limited implementation of regex. For 
what should grep and what egrep be used?

More information about the linux mailing list