Date: Tue, 3 Dec 2002 16:11:10 -0500 (EST) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: thomas@vermoe.dk (Thomas von Hassel) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tool/method to convert DOS line endings to UNIX line endings Message-ID: <200212032111.gB3LBBf17566@clunix.cl.msu.edu> In-Reply-To: <0E178470-0702-11D7-AFC7-0003936CEB72@vermoe.dk> from "Thomas von Hassel" at Dec 03, 2002 09:59:03 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > S)ubject: Re: tool/method to convert DOS line endings to UNIX line endings > Any ideas in re to subject ? First of all, please put all relevant information in the body of your message. It makes it very difficult to read and impossible to quote things that are only mentioned in the subject line. This is a matter of practicallity as well as courtesy. Two possibilities: Are you coming from a DOS place to a UNIX place or are the files already in your UNIX place and you need to fix them there? If you are moving th efiles, use ftp in ASCII mode. It will then do the conversion for you. After you make the ftp connection and before GETting or PUTting the file, type ASCII to select ASCII mode. If the file is already on FreeBSD UNIX then use 'tr(1)'. Presuming your text file is called dosfile and you convert it to a file named unixfile for example type: tr -d "\r" < dosfile > unixfile ////jerry > > /thomas > > -- > Thomas von Hassel > DarX @ irc > darxmac @ AIM/iChat > Powered by inkwell...! 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?200212032111.gB3LBBf17566>