2 ms·
unfortunately using a simple pipe is not going to work, because you're also looking for user input, and you can't do both easily with stdin.
by ragingrobot 5y ago
unfortunately using a simple pipe is not going to work, because you're also looking for user input, and you can't do both easily with stdin.
- seanp2k2 5y agoIt’s possible to construct parallel (ish) pipeline processing in bash by using file descriptors above 2. See https://mywiki.wooledge.org/FileDescriptor https://mywiki.wooledge.org/FileDescriptor . It’s part of why I always liked Ruby’s .tap() : https://medium.com/aviabird/ruby-tap-that-method-90c8a801fd6a https://medium.com/aviabird/ruby-tap-that-method-90c8a801fd6...