source: configs/dcmip2016/PLOTS/copy_graphs.sh

Last change on this file was 439, checked in by dubos, 8 years ago

Updated DCMIP2016 NCL scripts

  • Property svn:executable set to *
File size: 524 bytes
Line 
1#!/bin/bash
2
3# collects all graphs from subdirectories
4# run this script from the main directory PLOTS
5
6rm -f graphs/*
7cd testcase
8ROOT=$(pwd)
9
10for CASE in * ; do
11    echo $CASE
12    cd $ROOT/$CASE/variant
13    ls
14    for EXP in * ; do
15        echo $EXP
16        cd $ROOT/$CASE/variant/$EXP
17        pwd
18        ls *.png *.gif
19        for IMG in $(ls *.png *.gif) ; do
20            cp $IMG $ROOT/../graphs/${CASE}_${EXP}_${IMG}
21        done
22    done
23done
24
25cp $ROOT/*/*.png $ROOT/*/*.gif $ROOT/../graphs
26# cleanup temporary files
27cd $ROOT/../graphs
28rm -f *000*.png
29
30clear
31ls -l
Note: See TracBrowser for help on using the repository browser.