Skip to content

Instantly share code, notes, and snippets.

@sodonnell
Last active February 21, 2018 20:29
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 sodonnell/aadc7da1d4e6c799c4f5abef78a8f993 to your computer and use it in GitHub Desktop.
Save sodonnell/aadc7da1d4e6c799c4f5abef78a8f993 to your computer and use it in GitHub Desktop.
sed - string replacement in files
# replace 'http:' w/ 'https:' in all files within the current directory.
sed -i 's/http:/https:/g' ./*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment