|
|
ps -aux > processes
sort processes
This works, but it gives us a file (namely processes) which we
don't want. The pipe symbol, "|" lets us bypass this intermediate
file. The above two commands can be replace with the following:
ps -aux | sort
It is possible to connect a series of commands by additional pipe
symbols. We could pass our previous output through the more
paging program to obtain a more pleasing display of the results.
This is a accomplished by typing
ps -aux | sort | more
One important point to recognize is that if a command isn't capable
of reading from standard input, it cannot be placed to the right of
a pipe symbol.
© 1993-1998 Christopher C. Taylor |
||||||||