Posted By

rm1984 on 06/30/16


Tagged

file Shell Bash replace String grep sed xargs sh


Versions (?)

Replace a string with another one in many files


 / Published in: Bash
 

Replace a string with another one in many files

  1. $ grep -rl 'windows' ./ | xargs sed -i 's/windows/linux/g'

Report this snippet  

You need to login to post a comment.