Skip to content

Instantly share code, notes, and snippets.

@nafu
Created May 31, 2013 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nafu/5687843 to your computer and use it in GitHub Desktop.
Save nafu/5687843 to your computer and use it in GitHub Desktop.
Delete multiple line including specific word
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