repo.or.cz
/
bash.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Patch-ID: bash41-003
[bash.git]
/
examples
/
functions
/
shcat2
blob
6fe90f4090d844e7311b70d6690fc104ba652418
1
shcat()
2
{
3
while read -r line
4
do
5
echo "$line"
6
done
7
}
8
9
shcat2()
10
{
11
while [ $# -ge 1 ]; do
12
case "$1" in
13
-) shcat ;;
14
*) shcat < "$1" ;;
15
esac
16
shift
17
done
18
exit 0
19
}