28Jul/140
replace string in dir
grep -rl STRING1 . | xargs ^Cd -i 's/STRING1/STRING2/g'
Note: This replaces STRING1 to STRING2 even in hidden dirs, which can mess up your .git/index
grep -rl STRING1 . | xargs ^Cd -i 's/STRING1/STRING2/g'
Note: This replaces STRING1 to STRING2 even in hidden dirs, which can mess up your .git/index
Leave a comment