Search This Blog

Pages

Wednesday, February 24, 2010

Piping Commands - Find, Grep, Sed

I wanted to perform sed on output of grep. Found that the webpage: http://www.liamdelahunty.com/tips/piping_commands_find_grep_sed.php matches my requirement.

The following command worked:
$ grep SHASHI rscd.log  | sed 's/.*SHASHI/SHASHI/g'

No comments:

Post a Comment