tsort — Topological Sort
Synopsis
/usr/ccs/bin/tsort [file]
Description
The tsort command produces on the standard output a totally ordered list of items consistent with a partial ordering of items mentioned in the input file.
The input consists of pairs of items (nonempty strings) separated by blanks. Pairs of different items indicate ordering. Pairs of identical items indicate presence, but not ordering.
Operands
file | A path name of a text file to order. If you specify no file operand, use the standard input. |
Examples
The following command sorts the characters you type between the first and second EOF.
castle% tsort <<EOF a b c c d e g g f g e f EOF a b c d e f g castle%
Environment Variables
See environ(5) for descriptions of the ...
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.