Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2001 21:05:23 -0800 (PST)
From:      David Kirchner <davidk@accretivetg.com>
To:        David Loszewski <stealth215@mediaone.net>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: ^M on end of lines
Message-ID:  <20011103210452.A44499-100000@localhost>
In-Reply-To: <000e01c164e9$4592a300$3000a8c0@sickness>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 3 Nov 2001, David Loszewski wrote:

> So then how do I strip it of the '^M's then? Lol, this is the biggest
> pain in the ass, and I'm not a complete newbie. If I do 'wget' I get the
> same thing sometimes so I'm starting to think that there's something
> wrong with the configs in the system.  Ideas on where I should start
> looking?
>
> Dave

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

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


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?20011103210452.A44499-100000>