3 ms·
Unix shell pipelines have two usage patterns
- klysm 6y agoUgh the SIGPIPE behavior is rather unfortunate, but I don’t think partial consumption behavior is too common in most scripts. I usually run something that consumes a limited number of lines manually to test quickly when the entire input is large. Of course there are definitely cases where you’d want to do this in a script and it’s a good idea to be careful of.