...
Code Block | ||
---|---|---|
| ||
cat cmd*log # or, for a listing ordered by node name (the 11th field) cat cmd*log | sort -k 11,11 |
The vertical bar ( | ) above is the pipe operator ( | ), which connects one program's standard output to the next program's standard input.
(Read more about the sort command at Linux fundamentals: cut, sort, uniq, and more about Piping)
You should see something like output below.
...
Notice that there are 4 different host names. This expression:
Code Block | ||
---|---|---|
| ||
cat cmd*log | awk '{print $11}' | sort | uniq -c |
should produce output something like this (read more about piping commands to make a histogram)
Code Block | ||
---|---|---|
| ||
4 c302-005.ls6.tacc.utexas.edu 4 c302-006.ls6.tacc.utexas.edu 4 c305-005.ls6.tacc.utexas.edu 4 c305-006.ls6.tacc.utexas.edu |
...