Created
April 20, 2013 19:12
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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