Thursday, April 9, 2009

Sed Command

Keeping lines containing certain words with the sed command

sed -i -e '/firefox/!d' TheEntireIntarwebs.html

sed // The program
-i // tells sed to write the results back to the source file
-e // tells sed to interpret the next argument as a regular

No comments:

Post a Comment