- #1
r0bHadz
- 194
- 17
- TL;DR Summary
- Using command ps -ly I get output of three lines
piping that output to wc -l it says that there are four lines. Why
In bash, I am writing the following:
ps - ly
this command gives me output of three lines
then I do:
ps -ly | wc -l
to read the number of lines. It says 4.
I clearly see that there are three lines. Thinking that there might be a new line possibly, I open export the command output to a file and open it in vim and no, there are just three lines.
I am wondering why the number is 4?
ps - ly
this command gives me output of three lines
then I do:
ps -ly | wc -l
to read the number of lines. It says 4.
I clearly see that there are three lines. Thinking that there might be a new line possibly, I open export the command output to a file and open it in vim and no, there are just three lines.
I am wondering why the number is 4?