Connecting Commands with Pipes


ls | wc
The output of "ls" is sent to "wc" to be counted.
The pipe character "|" is used to connect the two commands.
A more complicated example ...
ps -aux | grep netscape | wc -l
Report the number of people running netscape.

Previous slide Next slide Back to the index View Graphic Version

Notes:

No notes for slide 17