Skip to content

Instantly share code, notes, and snippets.

@dylan-chong
Created October 29, 2017 04:36
Show Gist options
  • Save dylan-chong/a379c45cd2ff498a79a6762eb15877ef to your computer and use it in GitHub Desktop.
Save dylan-chong/a379c45cd2ff498a79a6762eb15877ef to your computer and use it in GitHub Desktop.
# Dry run, print out results
find * -type f | xargs perl -0p -e 's/from/to/g'
# Do replace in files
find * -type f | xargs perl -0pi -e 's/from/to/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment