Hi all,
Is there a way to edit/update a text file without having to open and edit or pipe it to another file?
I've tried this command but it does not work.....
eq. vi +:g/TEST/s//Test/g +:wq! abc.log
I read too fast the question. My answer will not be to you of a big help... I do not know if the edition which you wishes is possible without opening the file.
The sed utility is a stream editor that reads one or more text files, makes editing changes according to a script of editing commands, and writes the results to standard output.
The script is obtained from either the script operand string, or a combination of the option-arguments from the -e script and -f script_file options. TandA
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.