[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: inserting carriage return characters

On Fri, 31 May 2002, Sean 'Shaleh' Perry wrote:

> On 01-Jun-2002 Paul E Condon wrote:
> > What is a simple way to insert a carriage return character just before
> > each line feed (new line) character in a text file?
> > 
> in other words, make it look like a Windows text file?  The sysutils package
> has two utilities -- 'fromdos' which removes ^M and 'todos' which adds them.

or in vi do a search and replace:              g:/$/s//^M/g
to produce the ctrl char:  ctrl-v, ctrl-m

Thomas Good                                  e-mail: tomg@sqlclinic.net
Programmer/Analyst                           phone:   (+1) 718.818.5528
Residential Services                         fax:     (+1) 718.818.5056
Behavioral Health Services, SVCMC-NY         mobile:  (+1) 917.282.7359
--                                                                   --
SQL Clinic - An Open Source Clinical Record           www.sqlclinic.net

To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: