Specifying sort fields

Kirk Strauser kirk at strauser.com
Fri Apr 23 07:41:07 PDT 2004


At 2004-04-23T13:00:17Z, "JJB" <Barbish3 at adelphia.net> writes:

> Thank you that worked. You know that nowhere in the 'man sort' info does
> it say that to use sort command you have to use pipe commands to feed it
> data.

It doesn't because you don't.  The syntax is:

    sort [OPTION]... [FILE]...

which means that you may optionally specify the name of the file to process.
For what it's worth, the wide majority of Unix commands accept input from
pipes and can write output to pipes.
-- 
Kirk Strauser

"94 outdated ports on the box,
 94 outdated ports.
 Portupgrade one, an hour 'til done,
 82 outdated ports on the box."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040423/0e8bf2c1/attachment.bin


More information about the freebsd-questions mailing list