source: SH_SHM/trunk/util/sensitivity_from_old_style.csh @ 92

Revision 16, 597 bytes checked in by marcus, 15 years ago (diff)

r1 | svn | 2007-12-13 11:10:29 +0100 (Do, 13 Dez 2007) | 2 lines

Initial import

  • Property svn:executable set to *
Line 
1#! /bin/csh
2#
3# file sensitivity_from_old_style.csh
4#      ==============================
5#
6# version 1, 20-May-2006
7#
8# Create sensitivity file from old-style seedcalib_... files
9# K. Stammler, 20-Mar-2006
10
11set tmpfile=$HOME/sc_$$.000
12
13
14if  (-e $tmpfile)  \rm $tmpfile
15cd $SEED_INPUTS
16ls seedcalib_*-??-? | sed 's/seedcalib_//' >$tmpfile
17
18set cnt=1
19while  (1 > 0)
20        set stream=`sed -n $cnt"p" $tmpfile`
21        if  ("$stream" == "")  break
22        set c=1
23        while  (1 > 0)
24                set line=`sed -n $c"p" seedcalib_$stream`
25                if  ("$line" == "")  break
26                echo "$stream  $line"
27                @ c ++
28        end
29        @ cnt ++
30end
31
32\rm $tmpfile
Note: See TracBrowser for help on using the repository browser.