Dcycle Blog

sed for changing text in a file

October 27, 2015

$ echo hello > world
$ cat world
hello
$ sed -i.bak 's/$/ world/g' world
$ cat world
hello world