On Aug 18, 2011, at 3:17 PM, Daniel Brown wrote:

On Thu, Aug 18, 2011 at 16:13, Dotan Cohen <dotanco...@gmail.com> wrote:

2) I learned a new trick today! Grep this/that syntax:
cat .htaccess | grep "RewriteCond\|RewriteRule"
That's a backslash-pipe double operator in there. Easy to remember:
they're both on the same key.

   Depending on your keyboard layout, yes.  ;-P

   If you like operators with your grep, try grepping on steroids by
using egrep (`man egrep`).

If you *really* like operators with your grep, try pcregrep :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to