Name

tsort

Synopsis

tsort [option] [file]

Perform a topological sort on partially ordered strings in the specified file. If no file is specified or is -, read standard input. Multiple strings on a line are separated by spaces, where each line indicates a partial ordering. The fully ordered results are written to standard output. See the tsort info page for an example of the use of tsort for sorting lists of functions into the order they are called.

Options

--help

Print help information and exit.

--version

Print version information and exit.

Get Linux in a Nutshell, 6th Edition 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.