3 ms·
In more UNIXy tradition, I'd say either pipe in a file, or pick the default. That way people can use downloaded files too.
by berkes 5y ago
In more UNIXy tradition, I'd say either pipe in a file, or pick the default.
That way people can use downloaded files too.
- ragingrobot 5y agounfortunately 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...