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 - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -