On Dec 8, 10:55 am, Marc Herbert <marc.herb...@gmail.com> wrote: > DennisW wrote : > > > Would you care to comment on the coproc command in Bash 4? > > I wish I could, but I know nothing about it. Anyone else?
yeah, I tried that: prefix_timestamp() { while read line; do echo "$(date): $line" done } coproc prefix_timestamp seq 10>&${COPROC[1]} eval "exec ${COPROC[1]}>&-" cat <&${COPROC[0]} wait $COPROC_PID but am not sure if I like that construct better. Peter