Sorts an unordered list of ordered pairs (a topological sort).
tsort [ — ] [ File ]
The tsort command reads from File or standard input an unordered list of ordered pairs, builds a completely ordered list, and writes it to standard output.
The input File should contain pairs of non-empty strings separated by blanks. Pairs of different items indicate a relative order. Pairs of identical items indicate presence, but no relative order. You can use the tsort command to sort the output of the lorder command.
If File contains an odd number of fields, an appropriate error message is displayed.
Item | Description |
---|---|
— | (Double hyphen) Interprets all arguments following the — flag as file names. If the file is named —, use tsort — —. |
This command returns the following exit values:
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
Item | Description |
---|---|
/usr/ccs/bin/tsort | Contains the tsort command. |
/usr/ccs/bin/tsort | Contains symbolic link to the tsort command. |