|
ps -aux > processes sort processesThis 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 | sortIt 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 | moreOne 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-2001 Christopher C. Taylor |
|||||||