Skip to content

Instantly share code, notes, and snippets.

@hackebrot
Created August 1, 2016 07:42
Show Gist options
  • Save hackebrot/de50425bc4ee626254ca37b6c845f2fd to your computer and use it in GitHub Desktop.
Save hackebrot/de50425bc4ee626254ca37b6c845f2fd to your computer and use it in GitHub Desktop.
rename in files
$ ag -w foo -l -0 | xargs -0 -n 1 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