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: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

 

No trackbacks yet.