HostOnNet Blog

sed

sed is a command line tool to replace text.

To display only

sed -e "s/FIND_TEXT/REPLACE_TEXT/g" 1.txt

To Replace text

sed -i "s/FIND_TEXT/REPLACE_TEXT/g" 1.txt

You can use regular expression for matching text.


Posted in Linux