Skip site navigation (1)Skip section navigation (2)
Date:      03 Dec 2002 18:49:01 -0600
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: tool/method to convert DOS line endings to UNIX line endings
Message-ID:  <874r9uwqv6.fsf@pooh.lan.honeypot.net>
In-Reply-To: <Pine.SGI.3.96.1021203155019.243744X-100000@y.dev.wamnet.com>
References:  <Pine.SGI.3.96.1021203155019.243744X-100000@y.dev.wamnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

At 2002-12-03T21:53:29Z, Lee J Carmichael <lcarmich@wamnet.com> writes:

> while(<IN>) {
>    chomp;
>    print OUT "\n";
> }

Wouldn't that print only an EOL?  Shouldn't that be:

  print OUT "$_\n";

or similar?
-- 
Kirk Strauser
In Googlis non est, ergo non est.

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?874r9uwqv6.fsf>