File: %40ap

package info (click to toggle)
auto-07p 0.9.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,200 kB
  • sloc: fortran: 22,644; f90: 19,340; python: 19,045; ansic: 11,116; sh: 1,079; makefile: 618; perl: 339
file content (18 lines) | stat: -rwxr-xr-x 456 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
if ( test $# -eq 1 ) then
	cat fort.7 >> b.$1
	cat fort.8 >> s.$1
	cat fort.9 >> d.$1
	echo "Appending fort.7 to b.$1 ... done"
	echo "Appending fort.8 to s.$1 ... done"
	echo "Appending fort.9 to d.$1 ... done"
elif ( test $# -eq 2 ) then
	cat b.$1 >> b.$2
	cat s.$1 >> s.$2
	cat d.$1 >> d.$2
	echo "Appending b.$1 to b.$2 ... done"
	echo "Appending s.$1 to s.$2 ... done"
	echo "Appending d.$1 to d.$2 ... done"
else
	echo "Illegal command"
fi