Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2002 16:56:37 -0600 (CST)
From:      Lee J Carmichael <lcarmich@wamnet.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: tool/method to convert DOS line endings to UNIX line endings
Message-ID:  <Pine.SGI.3.96.1021203165441.243744f-100000@y.dev.wamnet.com>
In-Reply-To: <Pine.BSF.4.21.0212031550360.12062-100000@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Good point, I pulled it from a script that was doing some additional
magic.

Lee 

On Tue, 3 Dec 2002, Warren Block wrote:

> On Tue, 3 Dec 2002, Lee J Carmichael wrote:
> 
> > If you are going from DOS to Unix you could use the following perl script:
> 
> [script snipped] 
> 
> It's a bit easier if you let Perl do the heavy lifting:
> 
> perl -pi -e 's/\r//g' file-to-convert
> 
> -Warren Block * Rapid City, South Dakota USA
> 
> 


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?Pine.SGI.3.96.1021203165441.243744f-100000>