Skip to content

Instantly share code, notes, and snippets.

@solidsnack
Created October 12, 2011 07:53
Show Gist options
  • Save solidsnack/1280558 to your computer and use it in GitHub Desktop.
Save solidsnack/1280558 to your computer and use it in GitHub Desktop.
for line in "echo start" "exec cat" "echo end"
do
echo "$line"
sleep 0.01
done | sh
## Prints:
# start
# echo end
for line in "echo start" "exec cat" "echo end"
do
echo "$line"
done | sh
## Prints:
# start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment