repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
web: home-page: Add new page
[lcapit-junk-code.git]
/
func-redir.sh
blob
2f85021fd7fc689f2f8ed434f0b22ca58ab084c9
1
#!/bin/bash
2
#
3
# In bash, functions can redirect output generated by
4
# the commands they execute.
5
6
func1
()
7
{
8
echo
"yo dude, I'm func1!!!"
9
} >
func1-output.txt
10
11
func1