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: bash40-021
[bash.git]
/
examples
/
scripts
/
cat.sh
blob
78106b2161057165a8bfdaf908b7faf65b01b225
1
shcat
()
2
{
3
while
read -r
;
do
4
echo
"
$REPLY
"
5
done
6
}
7
8
if
[
-n
"
$1
"
];
then
9
shcat
<
"
$1
"
10
else
11
shcat
12
fi