Created
May 31, 2013 20:44
-
-
Save nafu/5687843 to your computer and use it in GitHub Desktop.
Delete multiple line including specific word
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WORD='XXX:'; FILE=`ack $WORD -l | head -1`; cat $FILE; sed '/'$WORD'/d' $FILE > tmp; mv tmp $FILE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment