help with inserting mutiple lines usign sed
hi,
i am trying to insert multiple lines in a file using sed.
suppose below is the text.
hi i am here.
Please "$x" me.
linuz forums.
i tried using
sed "`expr $line + 3` i\ hi i am here. \ Please "$x" me." ~/scripts/temp.txt
The entire output appeared in a line.
let me know how to print the text in multiple lines.
Last edited by puth; 02-11-2010 at 04:05 PM.
Reason: USed \n instead of \ and now the text is printing in multiple lines
|