Use of Pipes - | (Con’t)
There are several solutions to this problem:
- Solution 1
host% ps -ax > psfile
host% wc -l psfile
- Note the number of processes
- Solution 2
host% ps -ax | wc -l
- Note the number of processes
- Why is there a difference of one process?