You don't need to extract the PID because you already have it. That's how you got the output, after all. If you wanted to do it this way (and it's not the way you should do it), you want to look if you get output besides the header line.
In reply to Re^2: Unix process number on a mac...
by brian_d_foy
in thread Unix process number on a mac...
by zakzebrowski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |