Wednesday, 28 August 2013

sed inline replacement and without having to create a file

sed inline replacement and without having to create a file

I'm trying to do a replacement inline in a configuration file after defore
deploying this file. I looked in the sed documentation but I can't get it
working. Even with -e For now I mv into .back file and then sed to the
file, finishing by rm the file. I'm sure there's an easier way to do that
but can't get it working.
Thanks
mv file.conf file.back sed s/string/anotherstring/ file.back > file.conf
rm file.back

No comments:

Post a Comment