selfjungle Just another WordPress weblog

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

Tagged as: No Comments