file - what is the equivalent of the instruction sed -i in solaris? -


i searching equivalent of line:

sed -e /$line/d -i tels/telephonenumbers.txt 

it works fine in ubuntu, fedora, opensuse , cygwin, not work in solaris, find can use loop, trying avoid use of loop. suggestions?

sed -e "/$line/d" tels/telephonenumbers.txt > tmp && mv tmp tels/telephonenumbers.txt 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -