Skip to content

Instantly share code, notes, and snippets.

@sharkoz
Created April 20, 2013 19:12
Show Gist options
  • Save sharkoz/5427038 to your computer and use it in GitHub Desktop.
Save sharkoz/5427038 to your computer and use it in GitHub Desktop.
[Shell] Ctrl+h across files : Find $1 and replace with $2 in all files of folder and subfolders
function ctrlh(){ find . -maxdepth 1 -type f -print0 | xargs -0 sed -i "s£$1£$2£g"; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment