Use files.

./program-cli | (
read -r
printf "%s\n" "$REPLY"  > /tmp/a
) > /tmp/b
fooify /tmp/a
barify /tmp/b
....

Reply via email to