Date: Mon, 3 May 1999 14:52:25 -0500 From: Chris Costello <chris@holly.dyndns.org> To: Vince Vielhaber <vev@michvhf.com> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Dos2unix Message-ID: <19990503145223.A8709@holly.dyndns.org> In-Reply-To: <XFMail.990503154421.vev@michvhf.com>; from Vince Vielhaber on Mon, May 03, 1999 at 03:44:21PM -0400 References: <19990503143252.C7049@holly.dyndns.org> <XFMail.990503154421.vev@michvhf.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 3, 1999, Vince Vielhaber wrote: > > On 03-May-99 Chris Costello wrote: > > On Mon, May 3, 1999, Michael C. Vergallen wrote: > >> Here it is ... someone gave me this routine to use ... > > > > This code is both unnecessarily complex and it does not > > function the same way the BSDI dos2bsd/bsd2dos tools work. > > This is all I use in a shell script to convert to unix. > > tr -d '^M' < $1 > > But change the ^M to an actual ASCII 13. I call it 2ux and to > use it: > > 2ux INFILE > OUTFILE > > I've never bothered converting them back, if needed I just load it into > an editor on the dos machine and save it, but you can probably use tr or > sed to do that if you really needed to. That also doesn't work like the BSDI utils. > > Vince. > -- > ========================================================================== > Vince Vielhaber -- KA8CSH email: vev@michvhf.com flame-mail: /dev/null > # include <std/disclaimers.h> TEAM-OS2 > Online Campground Directory http://www.camping-usa.com > Online Giftshop Superstore http://www.cloudninegifts.com > ========================================================================== > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > -- Chris Costello <chris@calldei.com> Old mail has arrived. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990503145223.A8709>