From owner-freebsd-questions Mon Nov 19 20:37:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail7.carolina.rr.com (fe7.southeast.rr.com [24.93.67.54]) by hub.freebsd.org (Postfix) with ESMTP id 9501437B419 for ; Mon, 19 Nov 2001 20:37:16 -0800 (PST) Received: from snafu.enterit.com ([66.57.159.198]) by mail7.carolina.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 19 Nov 2001 23:36:30 -0500 Message-Id: <5.1.0.14.0.20011119235444.02b45800@mail.enterit.com> X-Sender: jconner@enterit.com@mail.enterit.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 20 Nov 2001 00:00:10 -0500 To: "Ben Witkowski" From: Jim Conner Subject: Re: Dos2Unix Cc: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 AFAIK, FreeBSD has one too (too lazy to check. Check the ports). It is very easy to do it yourself though. cat filename | tr -d "\012" > newfilename or # I believe that \012 is the correct octal. cat filename | perl -ie 'while ( <> ) { $_ =~ s/\012//g;print }' > newfilename Please anyone correct that one liner if it is incorrect. I am very tired right now. - Jim At 19:59 11.19.2001 -0800, Ben Witkowski wrote: >most unix systems have a dos2unix utility that removes the trailing ^M >characters from each line. is there a comprable tool for FreeBSD, or does >anyone know where to find the binaries (or a script) to do the job? > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message - Jim -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- http://www.perlmonks.org/index.pl?node_id=67861&lastnode_id=67861 -----BEGIN PERL GEEK CODE BLOCK----- ------BEGIN GEEK CODE BLOCK------ Version: 0.01 Version: 3.12 P++>*@$c?P6?R+++>++++@$M GIT/CM/J d++(--) s++:++ a- >++++$O!MA->++++E!> PU-->+++BD C++++(+) UB++++$L++++$S++++$ $C-@D!>++++(-)$S++++@$X?WP+>++++MO!>+++ P++(+)>+++++ L+++(++++)>+++++$ !E* +PP+++>++++n-CO?PO!o >++++G W++(+++) N+ o !K w--- PS---(-)@ PE >*(!)$A-->++++@$Ee---(-)Ev++uL++>*@$uB+ Y+>+++ PGP t+(+++)>+++@ 5- X++ R@ >*@$uS+>*@$uH+uo+w-@$m! tv+ b? DI-(+++) D+++(++) G(++++) ------END PERL GEEK CODE BLOCK------ ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message