Woter January 8, 2016 at 3: Sign up or log in Sign up using Google. I'll update your answer before accepting.
RedHat Commands. Inserting after the Pattern: Thanks for the nice tutorial. Steven Penny Steven Penny 1.
Joseph R. Ramesh Natarajan December 10, 2009, 6: Long and longer option names perl -MGetopt:: To make it edit the file in place - with GNU sed - I had to add the -i option:. And how to write the Output back into file?
I need a one line solution as izx gave. FreeBSD 11.
Is there anyway for me to insert spaces at the beginning of the line? It is an answer to the question.
The script written is as given below! Also at least OS X's sed does not include a newline after the inserted text:.
Forum Advisor. Linked 1.
I tried echo and tee but was not successful. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web.
Preeti April 27, 2014, 6: