Re: [dev] I didn't know that you could use the shell like this: compound pipe?

2024-01-17 Thread Jeremy
I hate to assume your motives are bad-hearted, but I'm not sure if you're trolling or something? On 01/17/24 07:00PM, 201009-suckl...@planhack.com wrote: > Use files. > > ./program-cli | ( > read -r > printf "%s\n" "$REPLY" > /tmp/a > ) > /tmp/b > fooify /tmp/a > barify /tmp/b > > To corr

Re: [dev] I didn't know that you could use the shell like this: compound pipe?

2024-01-17 Thread 201009-suckless
Use files. ./program-cli | ( read -r printf "%s\n" "$REPLY" > /tmp/a ) > /tmp/b fooify /tmp/a barify /tmp/b

Re: [dev] I didn't know that you could use the shell like this: compound pipe?

2024-01-17 Thread Jeremy
On 01/15/24 03:14PM, Greg Reagle wrote: > I didn't know that you could use the shell like this. What a delightful > surprise. Here is the code for bash/dash: > > command | (read -r; printf "%s\n" "$REPLY"; sort) > Thanks for sharing. This is neat, however, it gets really gay when mult