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/






Comments

Popular posts from this blog

City Code Table for Casio SGW300HD-1AV Watch

How to force only 4G or LTE network connection for Samsung Galaxy Note 4

Mounting NFS share directory from D-link DNS 320L on Ubuntu 12.04 LTS