source:
vendor/bash/3.1/examples/functions/shcat2
| Last change on this file was 3228, checked in by , 19 years ago | |
|---|---|
| File size: 174 bytes | |
| Line | |
|---|---|
| 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 | } |
Note:
See TracBrowser
for help on using the repository browser.
