Using SED tool for replacing text in files
Posted on 14-04-2017 by Nadir Latif
It describes how to use the SED command line tool for removing text inside a file. Following script can be used for updating all occurrences of a text inside files:
find folder_name -type f -print0 | xargs -0 sed -i 's/current_text/new_text/g'
- http://stackoverflow.com/questions/6945621/using-sed-to-remove-a-block-of-text/36493035#36493035 (added a new answer)