Subversion Repositories lagranto.ecmwf

Rev

Rev 3 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 9
Line 84... Line 84...
84
   case -todate
84
   case -todate
85
     set refdate = $argv[2] 
85
     set refdate = $argv[2] 
86
     shift;
86
     shift;
87
   breaksw
87
   breaksw
88
 
88
 
89
 
-
 
90
  endsw
89
  endsw
91
 
90
 
92
  shift;
91
  shift;
93
 
92
 
94
end
93
end
Line 196... Line 195...
196
    endif
195
    endif
197
endif
196
endif
198
 
197
 
199
# Mode: -onlyin1
198
# Mode: -onlyin1
200
if ( "${mode}" == "-onlyin1" ) then
199
if ( "${mode}" == "-onlyin1" ) then
201
    set outfile1 = "tmp1.$$"
-
 
202
    set outfile2 = "tmp2.$$"
-
 
203
    \rm -f ${outfile1}
200
    
204
    \rm -f ${outfile2}
201
   \rm -f datelist.param
205
    grep -f  ${file1}    ${file2} >! ${outfile1}
202
   echo \"${filename}\"    >  datelist.param
206
    grep -vf ${outfile1} ${file1} >! ${outfile2}
203
   echo \"${mode}\"        >> datelist.param
207
    if ( "${filename}" != "/dev/stdout" ) then
204
   echo \"${file1}\"       >> datelist.param
208
      \mv ${outfile2} ${filename}
205
   echo \"${file2}\"       >> datelist.param
209
    else
206
 
210
      cat  ${outfile2}
207
   ${LAGRANTO}/goodies/datelist
211
    endif
208
    
212
    \rm -f ${outfile1}
-
 
213
    \rm -f ${outfile2}
-
 
214
endif
209
endif
215
 
210
 
216
# Mode: -onlyin2
211
# Mode: -onlyin2
217
if ( "${mode}" == "-onlyin2" ) then
212
if ( "${mode}" == "-onlyin2" ) then
218
    set outfile1 = "tmp1.$$"
213
    set outfile1 = "tmp1.$$"
Line 252... Line 247...
252
 
247
 
253
   ${LAGRANTO}/goodies/datelist
248
   ${LAGRANTO}/goodies/datelist
254
 
249
 
255
endif
250
endif
256
 
251
 
-
 
252
# Mode: -randsample
-
 
253
if ( "${mode}" == "-randsample" ) then
-
 
254
       
-
 
255
   \rm -f datelist.param
-
 
256
   echo \"${filename}\"    >  datelist.param
-
 
257
   echo \"${mode}\"        >> datelist.param
-
 
258
   echo ${randsample}      >> datelist.param
-
 
259
 
-
 
260
   ${LAGRANTO}/goodies/datelist
-
 
261
 
-
 
262
endif
-
 
263
 
257
exit 0
264
exit 0
258
 
265