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
Written by Amalrik Maia
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#