Date: Thu, 22 Dec 2005 15:33:50 -0600 From: Don Hinton <don.hinton@vanderbilt.edu> To: freebsd-questions@freebsd.org Cc: Mikhail Teterin <mi+mx@aldan.algebra.com> Subject: Re: what's an equivalent for the following Perl one-liner? Message-ID: <200512221533.53804.don.hinton@vanderbilt.edu> In-Reply-To: <200512221452.50599.mi%2Bmx@aldan.algebra.com> References: <200512211704.49530.mi%2Bmx@aldan.algebra.com> <200512222046.22133.tijl@ulyssis.org> <200512221452.50599.mi%2Bmx@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1347489.ylz1jkMKKb Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 22 December 2005 13:52, Mikhail Teterin wrote: > > Try col(1) or tr(1) to remove the carriage return and then sed to remove > > the spaces. > > Well, yes, but that's a two-stage process. A shame to go through the whole > file twice just because our tools aren't good enough. How about this: sed 's/ *[[:cntrl:]]$//'=20 hth... don > > -mi > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" =2D-=20 Don Hinton <don.hinton at vanderbilt.edu> 615.480.5667 ISIS, Vanderbilt University --nextPart1347489.ylz1jkMKKb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDqxvB0U0xbM5cLs0RAlIBAJ933Gav0o0NffCSUmTgKhmwVS/iCQCfQZmt yzq88ptOVr/wYheDxmkjhpU= =vf60 -----END PGP SIGNATURE----- --nextPart1347489.ylz1jkMKKb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512221533.53804.don.hinton>