folding arguments
Paul Lew
lew at gsg.UUCP
Wed Feb 17 15:17:55 AEST 1988
> % find $DIR -print | fmt | sed 's/^/cmd /' | sh
>
> It is a pity that fmt is hardwired with a line size of 72 columns.
I was very surprised when dmcanzi at watdcsu.waterloo.edu (David Canzi) pointed
out you can specify a width to fmt:
% find $DIR -print | fmt -1000 | sed 's/^/cmd /' | sh
^^^^^
I checked with man pages for fmt over and over, guess what? Another
undocumented feature! I think you can only learn thing like this by
reading network news besides look into the source code.
--
Paul Lew {oliveb,harvard,decvax}!gsg!lew (UUCP)
General Systems Group, 5 Manor Parkway, Salem, NH 03079 (603) 893-1000
More information about the Comp.unix.wizards
mailing list