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

One Response to “Solaris Sed Inplace Workaround( -i on linux )”
  1. bartek says:

    Good one. Saved me some searching.

Leave a Reply