On Wednesday 15 May 2002 17:59, Shridhar Daithankar wrote:
> Hi
>
> Can anybody explain me what's this upto? I am using Mandrake 8.2.
>
> [shridhar@perth tmp]$ cat startrek | sed s/^%/"text\n"/g|head

From man sed:

       This version of sed supports a \<newline> sequence in all regular 
expressions,  the  replace­
       ment  part  of  a substitute (s) command, and in the source and dest 
parts of a transliterate
       (y) command.  The \ is stripped, and the newline is kept.

So, when I tried this way, it worked:

binand@binand[~]:(1) sed "s/^%/text\\
> /g" < startrek

Binand



_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to