find and replace string recursively


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. egrep -lRZ --include=*.xml "find_string" . | xargs -0 -l sed -i -e 's/find_string/replace_string/g'

Report this snippet


Comments


You need to login to view comments.