Skip to content

Instantly share code, notes, and snippets.

@NickTomlin
Created August 25, 2014 15:40
Show Gist options
  • Save NickTomlin/cedaac01faa3e9b3b1cb to your computer and use it in GitHub Desktop.
Save NickTomlin/cedaac01faa3e9b3b1cb to your computer and use it in GitHub Desktop.
double to single bash

Replace double quotes with single quotes

# thanks to http://stackoverflow.com/questions/16154007/replace-all-double-quotes-with-single-quotes and http://stackoverflow.com/questions/22768645/how-to-use-find-exec-and-tr-to-process-a-large-number-of-files
find src -name "*.js" -exec sed -i "s/\"/'/g" {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment