source:
configs/dcmip2016/PLOTS/copy_graphs.sh
@
776
Last change on this file since 776 was 439, checked in by dubos, 8 years ago | |
---|---|
|
|
File size: 524 bytes |
Rev | Line | |
---|---|---|
[437] | 1 | #!/bin/bash |
2 | ||
3 | # collects all graphs from subdirectories | |
[438] | 4 | # run this script from the main directory PLOTS |
[437] | 5 | |
[438] | 6 | rm -f graphs/* |
7 | cd testcase | |
[437] | 8 | ROOT=$(pwd) |
9 | ||
[438] | 10 | for CASE in * ; do |
11 | echo $CASE | |
12 | cd $ROOT/$CASE/variant | |
13 | ls | |
14 | for EXP in * ; do | |
[437] | 15 | echo $EXP |
[438] | 16 | cd $ROOT/$CASE/variant/$EXP |
17 | pwd | |
18 | ls *.png *.gif | |
[437] | 19 | for IMG in $(ls *.png *.gif) ; do |
[438] | 20 | cp $IMG $ROOT/../graphs/${CASE}_${EXP}_${IMG} |
[437] | 21 | done |
22 | done | |
23 | done | |
[438] | 24 | |
[439] | 25 | cp $ROOT/*/*.png $ROOT/*/*.gif $ROOT/../graphs |
[438] | 26 | # cleanup temporary files |
27 | cd $ROOT/../graphs | |
28 | rm -f *000*.png | |
29 | ||
30 | clear | |
31 | ls -l |
Note: See TracBrowser
for help on using the repository browser.