Pages

Friday, June 10, 2011

UNIX -=- GREP with OR operand

To find HR or FS in a file named myfile, type the following command in a terminal:

egrep 'HR|FS' myfile

1 comment:

  1. Great article. I have also blogged my experience as grep command in unix with examples
    ,let me know how do you find it. Thanks

    ReplyDelete