Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2001 03:15:40 -0500
From:      "David Loszewski" <stealth215@mediaone.net>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: ^M on end of lines
Message-ID:  <001a01c16508$e4623670$3000a8c0@sickness>
In-Reply-To: <169116798405.20011103214209@telus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
How bout if I wanna do it directories at a time? Like a whole bunch of
directories?

Dave

-----Original Message-----
From: Sean Ellis [mailto:sellis@telus.net] 
Sent: Sunday, November 04, 2001 12:42 AM
To: freebsd-questions@freebsd.org
Cc: David Loszewski
Subject: Re: ^M on end of lines

Hello David,

Saturday, November 03, 2001, 9:05:23 PM, you wrote:

> On Sat, 3 Nov 2001, David Loszewski wrote:

>> So then how do I strip it of the '^M's then?

> You can remove the ^M's from a file with:

> perl -pi -e 's/\cM//g' filename

or open the file with vim. You should see '[dos]' in the status line.
Type

   :set fileformat=unix
   
and save your new de-^M'ed file.

Or do

tr -d '\015' < file > newfilename

from the command line,


-- 
Best regards,
 Sean                            mailto:sellis@telus.net



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001a01c16508$e4623670$3000a8c0>