7 ms·
Also for the `while` enthusiasts, here's how you zip the output of two processes in bash: paste -d \\n <(do_something1) <(do_something2) | while read -r va
by aaaaaaaaaaab 5y ago
Also for the `while` enthusiasts, here's how you zip the output of two processes in bash:
paste -d \\n <(do_something1) <(do_something2) | while read -r var1 && read -r var2; do
... # var1 comes from do_something1, var2 comes from do_something2
done