Solaris - Sed -i work around

The version of sed on Solaris cannot actually save the file. So as a work around just type 'perl -pi -e' instead of the sed command :

perl -pi -e ā€™s/who/when/gā€™ /tmp/afile 

Tags: UNIX

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001