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

Java sticky instances of class com.mysql.jdbc.Field aggregating -