Advertisement
Guest User

replace inplace string with leading special character

a guest
Feb 12th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. # command to change the string "ding with '\sache (exact match only) in all files of the 'some folder' directory + subfolders
  2. find /path/to/some\ folder/ -type f -print0 | xargs -0 sed -i 's:\<"ding\>:'\'\\\\sache':g'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement