TSORT(1) General Commands Manual TSORT(1)NAME
tsort - topological sort
SYNOPSIS
tsort [ file ]
DESCRIPTION
Tsort produces on the standard output a totally ordered list of items consistent with a partial ordering of items mentioned in the input
file. If no file is specified, the standard input is understood.
The input consists of pairs of items (nonempty strings) separated by blanks. Pairs of different items indicate ordering. Pairs of identi-
cal items indicate presence, but not ordering.
SEE ALSO lorder(1)DIAGNOSTICS
Odd data: there is an odd number of fields in the input file.
BUGS
Uses a quadratic algorithm; not worth fixing for the typical use of ordering a library archive file.
7th Edition April 29, 1985 TSORT(1)
Check Out this Related Man Page
tsort(1) User Commands tsort(1)NAME
tsort - topological sort
SYNOPSIS
/usr/ccs/bin/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 (nonempty 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 |
+-----------------------------+-----------------------------+
|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.10 1 Feb 1995 tsort(1)
Hello,
I am not a programmer, please be patient.
Actually, I have started to look into Perl because it seems to be able to solve all the problems (or most of them) I happen meet using my computer. These problems are generally all text-manipulation-related.
Although I started to study, I cannot... (6 Replies)
I am creating some documentation that includes a list of packages that are to be installed for a Debian Server.
This is a single line and I would like to sort the list of packages alphabetically.
Using a small example of the packages, the best I could come up with was as follows:
I create... (1 Reply)
Upon opening Terminal I get the following message:
-bash: /usr/bin/manpath: No such file or directory
-bash: /usr/bin/perl: No such file or directory
-bash: grep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: grep: command not found
I searched... (9 Replies)
Hey!
I wanted to find a text version of the Bible for purposes of grepping. The only files I could find, (in the translation I wanted), were Old Testament.txt and New Testament.txt. I thought, "fine, I'll just concatenate those two, no problemo." But when I unpacked them, turns out they had each... (22 Replies)
I feel that i am missing something obvious but i can't find what is wrong.
I have a script that is launching some functions with "&" and each call is feeding the array with a value. When all calls are finished I just want to retrieve the values of that array.
It is looking like that :
... (5 Replies)
Hi,
I want to set a cron job with the yesterday date in a unix server (solaris).
I tried TZ=CST+24 date +%Y%m%d but i had TZ=CST+24: not found
I tried `perl -mPOSIX -e 'print POSIX::strftime("%Y%m%d",localtime(time() - 86400)) '` it works but I'm not sure that all the clients have perl... (12 Replies)
Sorry for the weird title but i have the following problem.
We have several files which have between 10000 and about 500000 lines in them. From these files we want to remove lines which contain a pattern which is located in another file (around 20000 lines, all EAN codes). We also want to get... (28 Replies)
Hi All,
I have a.dat file with content
1,338,30253395122015103,2015103,UB0085000,STMT151117055527002,,,
1,338,30253395122015103,2015103,UB0085000,STMT151117055527001,,,
and b.dat having content
1,STMT151117055527001,a1.txt,b1.txt,c1.txt
1,STMT151117055527002,a2.txt,b2.txt,c2.txt
... (13 Replies)
Good afternoon:
I need your help please:
Im new at web applications and i started taking a Ruby on Rails course and as a part of the installations i followed the instructions given on page:
http://railsapps.github.io/installrubyonrails-ubuntu.html
I followed every step and id did not yield... (6 Replies)