On Tue, 4 Jun 2002, Shridhar Daithankar wrote:

> > you don't need to do any edits on the file.  Open in pico.  Ctrl+O.
> > Ctrl+X.
> 
> :s/^v^M/" "/g 
> 
> should do the trick in vi/vim. Check out for exact specs as I am rusty on 
> that..

that works (take out the " ") almost all times (as does the pico trick),
but yesterday I came across a file that had embedded ^Ms and neither
pico nor vi could do it.  The problem was the the ^Ms weren't at the end
of line (how).  The entire file was a single line, with ^Ms embedded.

enter sed stage left.
s/^V^M/\
/g
exit stage right.

-- 
Boy, those Germans have a word for everything.

                -- Homer Simpson
                   When Flanders Failed



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to