Date: Tue, 20 Nov 2001 00:00:10 -0500 From: Jim Conner <jconner@enterit.com> To: "Ben Witkowski" <ben@alohagrowers.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Dos2Unix Message-ID: <5.1.0.14.0.20011119235444.02b45800@mail.enterit.com> In-Reply-To: <DBEEJCFFMKHFOCLJLKFBCELFCAAA.ben@alohagrowers.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20011119235444.02b45800>