From owner-freebsd-questions Tue Dec 3 13:11:20 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 3564A37B406 for ; Tue, 3 Dec 2002 13:11:19 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8684643EBE for ; Tue, 3 Dec 2002 13:11:18 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id gB3LBBf17566; Tue, 3 Dec 2002 16:11:11 -0500 (EST) From: Jerry McAllister Message-Id: <200212032111.gB3LBBf17566@clunix.cl.msu.edu> Subject: Re: tool/method to convert DOS line endings to UNIX line endings To: thomas@vermoe.dk (Thomas von Hassel) Date: Tue, 3 Dec 2002 16:11:10 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <0E178470-0702-11D7-AFC7-0003936CEB72@vermoe.dk> from "Thomas von Hassel" at Dec 03, 2002 09:59:03 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > 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