in reply to grep -P

Keep in mind that even if it's compiled against pcre that it's not going to be able to understand all Perl regexen syntax (things like (?{}), for instance). I always keep a copy of tcgrep lying around.