From owner-freebsd-questions Thu Aug 29 15:30:39 2002 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 4153C37B400 for ; Thu, 29 Aug 2002 15:30:37 -0700 (PDT) Received: from nycsmtp3out.rdc-nyc.rr.com (nycsmtp3out.rdc-nyc.rr.com [24.29.99.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id D623943E4A for ; Thu, 29 Aug 2002 15:30:33 -0700 (PDT) (envelope-from scottro@nyc.rr.com) Received: from nyc.rr.com (66-108-172-188.nyc.rr.com [66.108.172.188]) by nycsmtp3out.rdc-nyc.rr.com (8.12.1/Road Runner SMTP Server 1.0) with SMTP id g7TMXAgQ001008; Thu, 29 Aug 2002 18:33:10 -0400 (EDT) Date: Thu, 29 Aug 2002 18:38:23 -0500 From: Scott Robbins To: Warner Joseph Cc: "'FreeBSD-Questions@FreeBSD.org'" , "'FreeBSD-Newbies@FreeBSD.org'" Subject: Re: Port to Remove ^M Message-ID: <20020829233823.GA5334%scottro@despammed.com> Mail-Followup-To: Warner Joseph , "'FreeBSD-Questions@FreeBSD.org'" , "'FreeBSD-Newbies@FreeBSD.org'" References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i-ja.1 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 29, 2002 at 06:07:28PM -0400, Warner Joseph wrote: > Hi, >=20 > Can anyone tell me real quick the name of > the port used to remove the ^M from files > that have been copied over from Windows? There's a program called tr. I'm not sure where it is in ports, though.=20 Syntax, IIRC is tr -d "\r" < filewith^M > newfile. Make a backup of filewith^M first though--once I mistyped and wound up with a file that was like the orignal--save it had no r's in it. I believe it's part of a default install--I just checked on a 4.6.2 that I installed today and it's there. HTH --=20 Scott PGP keyID EB3467D6 (1B48 077d 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Buffy: So. You saw their faces, but you can't describe them. Spike: Well, they were human. Two eyes each, kind of in the middle. --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9brBv+lTVdes0Z9YRAuYsAKC8Ghqjb7AIkXmTJDYPGosJjfjLdACgrSPZ fquAow/g5Fy5PuMXyl7GdwA= =RKy6 -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message