tsort man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

TSORT(1)							      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 identical
       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 │
       ├────────────────────┼─────────────────┤
       │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.

				 Jun 28, 2007			      TSORT(1)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net