Is there any fundamental difference between piping in mac and linux?
- by Mohammad Moghimi
ps -e | grep bash
sample output from a linux machine:
1128 pts/14 00:00:00 bash
7491 pts/7 00:00:00 bash
12651 pts/14 00:00:00 bash
16145 pts/2 00:00:00 bash
sample output from a mac machine:
58352 ttys000 0:00.09 login -pfl username /bin/bash -c exec -la bash /bin/bash
58353 ttys000 0:00.02 -bash
58390 ttys000 0:00.00 grep bash
20372 ttys005 0:00.06 login -pfl username /bin/bash -c exec -la bash /bin/bash
20373 ttys005 0:00.18 -bash
My question is that why we see "grep bash" in the second case but not the first case.