| 1 | #!/bin/sh |
| 2 | if ( test $# -eq 1 ) then |
| 3 | cat fort.7 >> b.$1 |
| 4 | cat fort.8 >> s.$1 |
| 5 | cat fort.9 >> d.$1 |
| 6 | echo "Appending fort.7 to b.$1 ... done" |
| 7 | echo "Appending fort.8 to s.$1 ... done" |
| 8 | echo "Appending fort.9 to d.$1 ... done" |
| 9 | elif ( test $# -eq 2 ) then |
| 10 | cat b.$1 >> b.$2 |
| 11 | cat s.$1 >> s.$2 |
| 12 | cat d.$1 >> d.$2 |
| 13 | echo "Appending b.$1 to b.$2 ... done" |
| 14 | echo "Appending s.$1 to s.$2 ... done" |
| 15 | echo "Appending d.$1 to d.$2 ... done" |
| 16 | else |
| 17 | echo "Illegal command" |
| 18 | fi |