Apr 26, 2004 #1 zaxxon MIS Dec 12, 2001 226 DE Hi, is it possible to make a "one-liner" of the following sed script? sed '/PATTERN/ athis text is the added line ' I tried many variations but non worked to get it on one line at shell prompt. Any help is welcome, thank you. laters zaxxon
Hi, is it possible to make a "one-liner" of the following sed script? sed '/PATTERN/ athis text is the added line ' I tried many variations but non worked to get it on one line at shell prompt. Any help is welcome, thank you. laters zaxxon
Apr 26, 2004 1 #2 PHV MIS Nov 8, 2002 53,708 FR In ksh -o vi: sed '/PATTERN/a\^Jthis text is the added line^J' To have ^J you type Ctrl-V Ctrl-J Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 Upvote 0 Downvote
In ksh -o vi: sed '/PATTERN/a\^Jthis text is the added line^J' To have ^J you type Ctrl-V Ctrl-J Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
Apr 26, 2004 Thread starter #3 zaxxon MIS Dec 12, 2001 226 DE Thanks a lot laters zaxxon Upvote 0 Downvote