Search this site

Custom Search

How to search and replace text strings in multiple text files using sed

This is how you can automatically search and replace text strings in multiple text files in a single command using sed.

sed -i "s/searched-text/replacement-text/g" text-filename.txt

References, Sources and Credits:
http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/






No comments :

Post a Comment

Thank you for visiting Almost a Technocrat. Due to many spam comments, your comment will be moderated.