Advertisement
theitd

Multiple text file - find and replace

Oct 2nd, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. # Find and replace globally, in cwd
  2.  
  3. grep -rli 'UseCanonicalName On' * | xargs -i@ sed -i 's/UseCanonicalName On/UseCanonicalName Off/g' @
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement