Skip to content

Instantly share code, notes, and snippets.

@nyamakawa
Last active December 11, 2018 23:03
Show Gist options
  • Save nyamakawa/d65e9d43ad557f3338c1537488b2c1d5 to your computer and use it in GitHub Desktop.
Save nyamakawa/d65e9d43ad557f3338c1537488b2c1d5 to your computer and use it in GitHub Desktop.
remove lines contained 'abc'
sed '/abc/d' input.file
git ls-files -z | xargs -0 sed -i -e 's/foo/bar/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment