Last Updated: February 25, 2016
·
602
· amalrik

non-blocking IPC in shell

$ mkfifo fifo1
$ exec 5<>fifo1
$ awk '{print "here:" $2}' <&5 &
 [1] 541
$ echo "one two three" >&5
 here:two
$ echo "four five six" >&5
 here:five