Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> (not certain if grep is reading the pipe as it is output or waits for execution to complete first)

Commands to the left of the pipe block upon writing to the pipe, and commands to the right of the pipe block upon reading. As something is written to the pipe, it gets read by the next process in the pipeline.

Data flows through Unix pipelines as it is written, and data flow is not dependent on completed execution.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: