From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 08:14:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B3ED37B401 for ; Mon, 4 Aug 2003 08:14:56 -0700 (PDT) Received: from dnsmail2.umb.com (dnsmail2.umb.com [198.136.201.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84B0D43FDF for ; Mon, 4 Aug 2003 08:14:54 -0700 (PDT) (envelope-from Randall.Munden@umb.com) Received: from tmvkcmo3.umb.com (viruswall2.umb.com [192.168.3.213]) by dnsmail2.umb.com (8.12.9/8.11.4) with SMTP id h74FEF0L007618; Mon, 4 Aug 2003 10:14:16 -0500 (CDT) Received: from 172.19.51.30 by tmvkcmo3.umb.com (InterScan E-Mail VirusWall NT); Mon, 04 Aug 2003 10:13:53 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Mon, 4 Aug 2003 10:13:52 -0500 Message-ID: <79B4EAB03B5E4649A740A8C1452F60643522F0@y6001au.umb.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to remove ^M character Thread-Index: AcNammR58maI1pwcQ/qu2/g5HQ172gAAIajQ From: "Munden, Randall J" To: "C Peter Biessener" , Subject: RE: How to remove ^M character X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2003 15:14:56 -0000 Or, if you've perl available: perl -pi -e 's/\r\n/\n/;' [file name] -----Original Message----- From: C Peter Biessener [mailto:pbiessener@hirshfields.com]=20 Sent: Monday, August 04, 2003 10:09 AM To: freebsd-questions@freebsd.org Subject: Re: How to remove ^M character You can also use ASCII mode in ftp, it will translate the line ends for=20 you. BINARY mode is for programs and archive files (zip, tar, tgz, etc...) Simon Barner wrote: > Hi, >=20 >=20 >>I ftp'd a file from windows to freebsd....not its every line has ^M at >>its end. Is there some command in vi (or some way) by whcih ^M can be=20 >>removed. >=20 >=20 > You can use dos2unix(1) for that. There is also the complementary tool > unix2dos(1). >=20 > Simon _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"