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