Query: tsort
OS: sunos
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
tsort(1) User Commands tsort(1)NAMEtsort - topological sortSYNOPSIS/usr/ccs/bin/tsort [file]DESCRIPTIONThe 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.OPERANDSThe 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.EXAMPLESExample 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 gENVIRONMENT VARIABLESSee 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 STATUSThe following exit values are returned: 0 Successful completion. >0 An error occurred.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbtool | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+SEE ALSOlorder(1), attributes(5), environ(5), standards(5)DIAGNOSTICSOdd data: there are an odd number of fields in the input file. SunOS 5.10 1 Feb 1995 tsort(1)
Related Man Pages |
---|
lorder(1) - opensolaris |
tee(1) - opensolaris |
tty(1) - opensolaris |
lorder(1) - osf1 |
tty(1) - sunos |
Similar Topics in the Unix Linux Community |
---|
dio 0.1.3 (Default branch) |
append data to file |
ordering a data file |
Matching Pairs with AWK or Shell |