Sed(Streamline EDitor) is a very usefull command line tool for unix platforms. It can perform a search and replace on text file, however the version of sed on Solaris cannot actually save the file. Not sure why but i find it idiotic however instead of typing sed just type perl -pi -e and that will perform your replacement example “sed” command:
perl -pi -e ’s/find/found/g’ /root/example
Entries (RSS)
Good one. Saved me some searching.