Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tsort(1) [hpux man page]

tsort(1)						      General Commands Manual							  tsort(1)

NAME
tsort - topological sort SYNOPSIS
[file] DESCRIPTION
produces on the standard output a totally ordered list of items consistent with a partial ordering of items mentioned in the input text file. If no file is specified, the standard input is understood. is generally used in conjunction with the command to sort the objects to be installed in a library by (see lorder(1) and ar(1)). The input consists of pairs of text items (nonempty strings) separated by blanks. Pairs of different items indicate ordering. Pairs of identical items indicate presence, but not ordering. EXTERNAL INFLUENCES
Environment Variables determines the locale for the interpretation of text as single- and/or multi-byte characters. determines the language in which messages are displayed. If or is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty variable. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multi-byte character code sets are supported. DIAGNOSTICS
There is an odd number of fields in the input file. WARNINGS
Libraries and object files cannot be directly. uses a quadratic algorithm that is not considered worth fixing given its typical use of ordering a library archive file. SEE ALSO
lorder(1). STANDARDS CONFORMANCE
tsort(1)

Check Out this Related Man Page

tsort(1)							   User Commands							  tsort(1)

NAME
tsort - topological sort SYNOPSIS
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 (non-empty strings) separated by blanks. Pairs of different items indicate ordering. Pairs of identi- cal items indicate presence, but not ordering. OPERANDS
The following operand is supported: file A path name of a text file to order. If no file operand is given, the standard input is used. EXAMPLES
Example 1 An example of the tsort command The command: example% tsort <<EOF a b c c d e g g f g e f EOF produces the output: a b c d e f g ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of tsort: LANG, LC_ALL, LC_CTYPE, LC_MES- SAGES, and NLSPATH. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbtool | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
lorder(1), attributes(5), environ(5), standards(5) DIAGNOSTICS
Odd data: there are an odd number of fields in the input file. SunOS 5.11 28 Jun 2007 tsort(1)
Man Page