Skip to content

Instantly share code, notes, and snippets.

@AlD
Created July 2, 2013 15:22
Show Gist options
  • Save AlD/5910228 to your computer and use it in GitHub Desktop.
Save AlD/5910228 to your computer and use it in GitHub Desktop.
$ ./redir.sh 3>&1 >&2 | while read line; do
> echo $line go\!
> done
Hey!
Ho!
Let's go!
$ cat redir.sh
#!/bin/bash
echo Hey\!>& 1
echo Ho\! >& 2
echo Let\'s >& 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment