Would you like to copy the permanent link to your clipboard?
Permanent link:
http://linuxexchange.org/questions/3098/passing-a-stream-to-a-bash-function/3099