Posted By

edeustace on 10/25/10


Tagged

Shell Bash replace linux sed find egrep


Versions (?)

find and replace string recursively


 / Published in: Bash
 

From: http://stackoverflow.com/questions/1169927/using-sed-and-grep-to-search-and-replace

  1. egrep -lRZ --include=*.xml "find_string" . | xargs -0 -l sed -i -e 's/find_string/replace_string/g'

Report this snippet  

You need to login to post a comment.