Introduce examples dir
[lcapit-junk-code.git] / examples / bash / func-redir.sh
blob2f85021fd7fc689f2f8ed434f0b22ca58ab084c9
1 #!/bin/bash
3 # In bash, functions can redirect output generated by
4 # the commands they execute.
6 func1()
8 echo "yo dude, I'm func1!!!"
9 } > func1-output.txt
11 func1