DEV Community

Discussion on: Linux Terminal: The Ultimate Cheat Sheet - Part 2

Collapse
yukikimoto profile image
Yuki Kimoto

I'm Perl user, so I sometime use grep -P option. This is Perl compatible Regular expression.

grep -r -P "\bfoo\b" .
Enter fullscreen mode Exit fullscreen mode