Hacker News new | ask | show | jobs
by cryptonector 905 days ago
You can get the pid of the process in the process redirection case (`while read ...; do ...; done < <(some_program)`) but not in the | case (`some_program | while read ...; do ...; done`).