#!/bin/bash echo -e "foo\nbar\nbaz" | ./test foo bar baz