what's an equivalent for the following Perl one-liner?

Mikhail Teterin mi+mx at aldan.algebra.com
Thu Dec 22 11:53:05 PST 2005


> 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.

	-mi


More information about the freebsd-questions mailing list