[Israel.pm] little bit O.T. :Perl regex vs grep regex

Sagiv Barhoom sagivba at 012.net.il
Wed Nov 10 13:16:46 PST 2004


hi all,
I hope this is not too mach off topic,
is there any CLI tool that equals to the bash command line tool "grep"
but with the power of perl regexes?

for example:

$ ls -l| grep ^[^a-zA-Z]
-rw-rw-r--    1 sagivba  sagivba     80384 אוק 22 14:55 Additions-Chapter7_1.doc

but "\W" does not work:

$ ls -l| grep ^\W
[sagivba at 80 Desktop]$






More information about the Perl mailing list