merge.sh (576B)
1 #!/bin/sh 2 3 mkdir -p build 4 for i in x y z 5 do 6 rm -f build/$i 7 rm -f build/$i-reverse 8 rm -f build/$i-origin 9 rm -f build/$i-reverse-origin 10 rm -f build/$i-fan 11 rm -f build/$i-fan-origin 12 rm -f build/$i-fan-and-wind 13 rm -f build/$i-fan-and-wind-origin 14 done 15 for i in $(seq 2 100) 16 do 17 for j in x y z 18 do 19 f=anemometer-wind/$i/$j 20 for suffix in "" -origin -reverse -reverse-origin -fan -fan-origin -fan-and-wind -fan-and-wind-origin 21 do 22 test -f $f$suffix && cat $f$suffix >> build/$j$suffix 23 done 24 done 25 done