/[MITgcm]/MITgcm_contrib/jmc_script/add0upto10c
ViewVC logotype

Annotation of /MITgcm_contrib/jmc_script/add0upto10c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sun Oct 12 14:46:35 2003 UTC (21 years, 9 months ago) by jmc
Branch: MAIN
Some basic scripts are gather here:
a) the restart test : "1+1=2"
b) PBS batch script that resubmit itself (loop).

1 jmc 1.1 #!/bin/csh
2     set xx = '0000000000'$1
3     set yy = `echo $xx | sed 's/^..........$/aaaaaaaaaa/'`
4    
5     while ( $yy != 'aaaaaaaaaa' )
6     set xx = `echo $xx | sed 's/^0//'`
7     set yy = `echo $xx | sed 's/^..........$/aaaaaaaaaa/'`
8     # echo $xx $yy
9     end
10     echo $xx
11     exit

  ViewVC Help
Powered by ViewVC 1.1.22