Changeset 565


Ignore:
Timestamp:
05/29/12 17:39:32 (12 years ago)
Author:
pinsard
Message:

fix bug on date loop in sh

Location:
trunk/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/concat-files.sh

    • Property svn:keywords changed from Id to Id URL
    r526 r565  
    5757# 
    5858#           {msg_t5} -> {concat_files} -> {log msg_t6} 
    59 #       }  
     59#       } 
    6060# 
    6161# EXAMPLES 
    6262# ======== 
    6363# 
    64 # You already used :ref:`traite_msg-prod.sh` to create MSG NetCDF files  
     64# You already used :ref:`traite_msg-prod.sh` to create MSG NetCDF files 
    6565# during [20060801, 20060802[ and you want to produce daily files:: 
    6666# 
     
    7070# 
    7171#  $ tlogd.sh concat-files 
    72 #  
     72# 
    7373# and of course on files in ${PROJECT_ID}. 
    7474# 
     
    103103# $Id$ 
    104104# 
     105# $URL$ 
     106# 
     107# - pinsard 20120529T150524Z loholt1.ipsl.polytechnique.fr (Linux) 
     108# 
     109#   * bug fix to handle correctly dates if translation in second on 9 digits 
     110#     (trailing 0 is automaticaly interpreted as an octal number). 
     111#     ex = 20010801 
     112#   * bug fix to handle correctly dates if translation in second of begin 
     113#     and end is not on the same number of digit 
     114#     ex : -b 20010801 -e 20010931 
     115# 
    105116# - pinsard 2011-06-01T09:18:41Z loholt1.ipsl.polytechnique.fr (Linux) 
    106117# 
     
    115126# 
    116127#   * suppress cd, input files are search in ${PROJECT_ID}/MSG/yyyy/mm/ 
    117 #    
     128# 
    118129# - fplod 20100608T143812Z aedon.locean-ipsl.upmc.fr (Darwin) 
    119130# 
     
    341352# 
    342353# loop over all dates 
    343 current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%10.10d",$1}') 
    344 end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%10.10d",$1}') 
    345 delta=86400 
    346 while [[ "${current}" < "${end}" ]] 
     354current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%d",$1}') 
     355declare -i current 
     356end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%d",$1}') 
     357declare -i end 
     358declare -i delta=86400 
     359while [ ${current} -lt ${end} ] 
    347360do 
    348361    echo "iii : looking for files of $(${date_cmd} -u -d "1970-01-01 ${current} sec" +%Y%m%d)" 1>> ${log} 
     
    353366    list=$(find ${PROJECT_ID}/MSG/${yyyy}/${mm}/${dd}/ -name "${yyyymmdd}????_msg-${product}_map_15min.nc" | sort) 
    354367    if [ "${list}" = "" ] 
    355     then  
     368    then 
    356369        echo "iii : no files found" 1>> ${log} 
    357370    else 
  • trunk/src/file_amsu_t2_to_mem.pro

    r540 r565  
    2626; :file:`${PROJECT_ID}/AMSU/2006/08/a5_20060813_025w05s_025e20n.dat`:: 
    2727; 
    28 ;   numch='a5' 
    29 ;   yyyy=2006L 
    30 ;   mm=8 
    31 ;   dd=13 
    32 ;   lonmin=-25. 
    33 ;   lonmax=25. 
    34 ;   latmin=-5. 
    35 ;   latmax=20. 
    36 ;   testfilename='' 
     28;   numch = 'a5' 
     29;   yyyy = 2006L 
     30;   mm = 8 
     31;   dd = 13 
     32;   lonmin = -25. 
     33;   lonmax = 25. 
     34;   latmin = -5. 
     35;   latmax = 20. 
     36;   testfilename = '' 
    3737;   result = file_amsu_t2_to_mem(yyyy, mm, dd, numch, lonmin, lonmax, latmin, latmax, testfilename) 
    3838; 
  • trunk/src/get_amsu.sh

    • Property svn:keywords set to Id URL
    r526 r565  
    101101# check if NSS.AM?X.??.D?????.S????.E????.B???????.??.L1C ok 
    102102# 
    103 # what about  
     103# what about 
    104104# lire_amsuab_new.pro:if (ambfile eq '/bdd/AMSU-1C/AMSUBN15/L1C/2006/2006_03_14/NSS.AMBX.NK.D06073.S1701.E1846.B4072728.GC.L1C') then goto,labett ;exception fichier erronne 
    105105# lire_amsuab_new.pro:if (ambfile eq '/bdd/AMSU-1C/AMSUBN15/L1C/2004/2004_06_25/NSS.AMBX.NK.D04177.S1824.E1950.B3180102.WI.L1C') then goto,labett ;exception fichier erronne 
    106 # build/complete catalog  
     106# build/complete catalog 
    107107# 
    108108# handle -f option 
     
    114114# 
    115115# $Id$ 
     116# 
     117# $URL$ 
     118# 
     119# - pinsard 20120529T150524Z loholt1.ipsl.polytechnique.fr (Linux) 
     120# 
     121#   * bug fix to handle correctly dates if translation in second on 9 digits 
     122#     (trailing 0 is automaticaly interpreted as an octal number). 
     123#     ex = 20010801 
     124#   * bug fix to handle correctly dates if translation in second of begin 
     125#     and end is not on the same number of digit 
     126#     ex : -b 20010801 -e 20010931 
    116127# 
    117128# - pinsard 2011-05-05T09:05:55Z loholt1.ipsl.polytechnique.fr (Linux) 
     
    205216${date_cmd} -u -d "${yyyymmddb}" > /dev/null 
    206217status_date=${?} 
    207 if [ ${status_date} -ne 0 ]  
     218if [ ${status_date} -ne 0 ] 
    208219then 
    209220     echo "${command} : eee : yyyymmddb ${yyyymmddb} argument invalid" 
     
    220231${date_cmd} -u -d "${yyyymmdde}" > /dev/null 
    221232status_date=${?} 
    222 if [ ${status_date} -ne 0 ]  
     233if [ ${status_date} -ne 0 ] 
    223234then 
    224235     echo "${command} : eee : yyyymmdde ${yyyymmdde} argument invalid" 
     
    292303dirref_base=/bdd/AMSU-1C/ 
    293304# 
    294 # loop over all dates to build URL lists  
    295 current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%10.10d",$1}') 
    296 end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%10.10d",$1}') 
    297 delta=86400 
    298 while [[ "${current}" < "${end}" ]] 
     305# loop over all dates to build URL lists 
     306current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%d",$1}') 
     307declare -i current 
     308end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%d",$1}') 
     309declare -i end 
     310declare -i delta=86400 
     311while [ ${current} -lt ${end} ] 
    299312do 
    300313    echo "iii : looking for files of $(${date_cmd} -u -d "1970-01-01 ${current} sec" +%Y%m%dT%H%M)" 1>> ${log} 
  • trunk/src/get_epsat.sh

    • Property svn:keywords set to Id URL
    r526 r565  
    9292# exit on error if some correction files do not exist ? 
    9393# 
    94 # build/complete catalog  
     94# build/complete catalog 
    9595# 
    9696# handle -f option 
     
    107107# 
    108108# $Id$ 
     109# 
     110# $URL$ 
     111# 
     112# - pinsard 20120529T150524Z loholt1.ipsl.polytechnique.fr (Linux) 
     113# 
     114#   * bug fix to handle correctly dates if translation in second on 9 digits 
     115#     (trailing 0 is automaticaly interpreted as an octal number). 
     116#     ex = 20010801 
     117#   * bug fix to handle correctly dates if translation in second of begin 
     118#     and end is not on the same number of digit 
     119#     ex : -b 20010801 -e 20010931 
    109120# 
    110121# - pinsard 2011-05-20T07:30:51Z loholt1.ipsl.polytechnique.fr (Linux) 
     
    198209${date_cmd} -u -d "${yyyymmddb}" > /dev/null 
    199210status_date=${?} 
    200 if [ ${status_date} -ne 0 ]  
     211if [ ${status_date} -ne 0 ] 
    201212then 
    202213     echo "${command} : eee : yyyymmddb ${yyyymmddb} argument invalid" 
     
    213224${date_cmd} -u -d "${yyyymmdde}" > /dev/null 
    214225status_date=${?} 
    215 if [ ${status_date} -ne 0 ]  
     226if [ ${status_date} -ne 0 ] 
    216227then 
    217228     echo "${command} : eee : yyyymmdde ${yyyymmdde} argument invalid" 
     
    284295dirref_base=/bdd/AMMASAT/CDF/priv/west_africa/surf-rr/epsat-sg 
    285296# 
    286 # loop over all dates to build URL lists  
    287 current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%10.10d",$1}') 
    288 end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%10.10d",$1}') 
    289 delta=86400 
    290 while [[ "${current}" < "${end}" ]] 
     297# loop over all dates to build URL lists 
     298current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%d",$1}') 
     299declare -i current 
     300end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%d",$1}') 
     301declare -i end 
     302declare -i delta=86400 
     303while [ ${current} -lt ${end} ] 
    291304do 
    292305    echo "iii : looking for files of $(${date_cmd} -u -d "1970-01-01 ${current} sec" +%Y%m%d)" 1>> ${log} 
  • trunk/src/get_msg.sh

    • Property svn:keywords changed from Id to Id URL
    r526 r565  
    9696# make it work outside climserv 
    9797# 
    98 # build/complete catalog  
     98# build/complete catalog 
    9999# 
    100100# handle -f option 
     
    109109#  $ date -d '20060622T0645' +%Y%m%dT%H%M 
    110110#  20060622T0145 
    111 #   
     111# 
    112112# while 20060622T0645 expected !! 
    113113# 
     
    117117# $Id$ 
    118118# 
     119# $URL$ 
     120# 
     121# - pinsard 20120529T150524Z loholt1.ipsl.polytechnique.fr (Linux) 
     122# 
     123#   * bug fix to handle correctly dates if translation in second on 9 digits 
     124#     (trailing 0 is automaticaly interpreted as an octal number). 
     125#     ex = 20010801 
     126#   * bug fix to handle correctly dates if translation in second of begin 
     127#     and end is not on the same number of digit 
     128#     ex : -b 20010801 -e 20010931 
     129# 
    119130# - pinsard 2011-05-02T13:39:47Z loholt1.ipsl.polytechnique.fr 
    120131# 
     
    125136#   * improve time loop. tricky TZ pb ! 
    126137# 
    127 # - fplod 20110428T072435Z  
     138# - fplod 20110428T072435Z 
    128139# 
    129140#   * better handling of missing directories ans files 
     
    134145# 
    135146#   * creation from traite_msg-prod.sh 
    136 #     thanks to http://stackoverflow.com/questions/1629015/bash-loop-between-two-given-dates  
     147#     thanks to http://stackoverflow.com/questions/1629015/bash-loop-between-two-given-dates 
    137148#     for loop on dates 
    138149# 
     
    265276${date_cmd} -u -d "${yyyymmddb}" > /dev/null 
    266277status_date=${?} 
    267 if [ ${status_date} -ne 0 ]  
     278if [ ${status_date} -ne 0 ] 
    268279then 
    269280     echo "${command} : eee : yyyymmddb ${yyyymmddb} argument invalid" 
     
    280291${date_cmd} -u -d "${yyyymmdde}" > /dev/null 
    281292status_date=${?} 
    282 if [ ${status_date} -ne 0 ]  
     293if [ ${status_date} -ne 0 ] 
    283294then 
    284295     echo "${command} : eee : yyyymmdde ${yyyymmdde} argument invalid" 
     
    352363# loop over all dates to build URL lists 
    353364list_url="" 
    354 current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%10.10d",$1}') 
    355 end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%10.10d",$1}') 
    356 delta=900 
    357 while [[ "${current}" < "${end}" ]] 
     365current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%d",$1}') 
     366declare -i current 
     367end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%d",$1}') 
     368declare -i end 
     369declare -i delta=900 
     370while [ ${current} -lt ${end} ] 
    358371do 
    359372    echo "iii : looking for files of $(${date_cmd} -u -d "1970-01-01 ${current} sec" +%Y%m%dT%H%M)" 1>> ${log} 
     
    385398        exist=$(( ${exist} + 1)) 
    386399    fi 
    387     if [ ${exist} -eq 0 ]  
     400    if [ ${exist} -eq 0 ] 
    388401    then 
    389         echo "iii : missing both of ${file_raw_gz} or ${file_def_gz}" >> ${log} 2>&1  
     402        echo "iii : missing both of ${file_raw_gz} or ${file_def_gz}" >> ${log} 2>&1 
    390403    fi 
    391404    if [ ${exist} -eq 1 ] 
    392405    then 
    393         echo "iii : missing one of ${file_raw_gz} or ${file_def_gz}" >> ${log} 2>&1  
     406        echo "iii : missing one of ${file_raw_gz} or ${file_def_gz}" >> ${log} 2>&1 
    394407    fi 
    395     if [ ${exist} -eq 2 ]  
     408    if [ ${exist} -eq 2 ] 
    396409    then 
    397410        list_url="${list_url} ${file_def_gz} ${file_raw_gz}" 
  • trunk/src/get_trmm.sh

    • Property svn:keywords set to Id URL
    r526 r565  
    9191# make it work outside climserv 
    9292# 
    93 # build/complete catalog  
     93# build/complete catalog 
    9494# 
    9595# handle -f option 
     
    103103# 
    104104# $Id$ 
     105# 
     106# $URL$ 
     107# 
     108# - pinsard 20120529T150524Z loholt1.ipsl.polytechnique.fr (Linux) 
     109# 
     110#   * bug fix to handle correctly dates if translation in second on 9 digits 
     111#     (trailing 0 is automaticaly interpreted as an octal number). 
     112#     ex = 20010801 
     113#   * bug fix to handle correctly dates if translation in second of begin 
     114#     and end is not on the same number of digit 
     115#     ex : -b 20010801 -e 20010931 
    105116# 
    106117# - fplod 20110606T132229Z cratos.locean-ipsl.upmc.fr (Linux) 
     
    210221${date_cmd} -u -d "${yyyymmddb}" > /dev/null 
    211222status_date=${?} 
    212 if [ ${status_date} -ne 0 ]  
     223if [ ${status_date} -ne 0 ] 
    213224then 
    214225     echo "${command} : eee : yyyymmddb ${yyyymmddb} argument invalid" 
     
    225236${date_cmd} -u -d "${yyyymmdde}" > /dev/null 
    226237status_date=${?} 
    227 if [ ${status_date} -ne 0 ]  
     238if [ ${status_date} -ne 0 ] 
    228239then 
    229240     echo "${command} : eee : yyyymmdde ${yyyymmdde} argument invalid" 
     
    296307# loop over all dates to build URL lists 
    297308list_url="" 
    298 current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%10.10d",$1}') 
    299 end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%10.10d",$1}') 
    300 delta=10800 
    301 while [[ "${current}" < "${end}" ]] 
     309current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%d",$1}') 
     310declare -i current 
     311end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%d",$1}') 
     312declare -i end 
     313declare -i delta=10800 
     314while [ ${current} -lt ${end} ] 
    302315do 
    303316    echo "iii : looking for files of $(${date_cmd} -u -d "1970-01-01 ${current} sec" +%Y%m%dT%H%M)" 1>> ${log} 
     
    318331        exist=$(( ${exist} + 1)) 
    319332    fi 
    320     if [ ${exist} -eq 1 ]  
     333    if [ ${exist} -eq 1 ] 
    321334    then 
    322335        list_url="${list_url} ${file_t1}" 
  • trunk/src/run_traite_amsuab.sh

    r537 r565  
    1515# :: 
    1616# 
    17 $ run_traite_amsuab.sh -b yyyymmdd -e yyyymmdd -lonmin lonmin -lonmax lonmax -latmin latmin -latmax latmax -numch numch 
     17run_traite_amsuab.sh -b yyyymmdd -e yyyymmdd -lonmin lonmin -lonmax lonmax -latmin latmin -latmax latmax -numch numch 
    1818# 
    1919# DESCRIPTION 
  • trunk/src/traite_amsuab.sh

    r545 r565  
    8383#   tlogd.sh traite_amsuab 
    8484# 
    85 # A more realistic example: 
     85# A more realistic example:: 
    8686# 
    8787#   traite_amsuab.sh -b 20060101 -e 20060630 -lonmin -32 -lonmax 32 -latmin -2 -latmax 42 
     
    121121# usage of profile on parameter true only 
    122122# 
    123 # get all procedure in profiler report (pb of sequence between  
     123# get all procedure in profiler report (pb of sequence between 
    124124# compile statements and call to profiler ?) 
    125125# 
     
    151151# $URL$ 
    152152# 
     153# - pinsard 20120529T150524Z loholt1.ipsl.polytechnique.fr (Linux) 
     154# 
     155#   * bug fix to handle correctly dates if translation in second on 9 digits 
     156#     (trailing 0 is automaticaly interpreted as an octal number). 
     157#     ex = 20010801 
     158#   * bug fix to handle correctly dates if translation in second of begin 
     159#     and end is not on the same number of digit 
     160#     ex : -b 20010801 -e 20010931 
     161# 
    153162# - fplod 20120420 
    154 #  
     163# 
    155164#   * add some compile to complete profiler report 
    156165#   * add a realistic example from laurence 
     
    386395# 
    387396d=$((${yyyymmddb} - ${yyyymmddb_min})) 
    388 if [ ${d} -lt 0 ]  
     397if [ ${d} -lt 0 ] 
    389398then 
    390399    echo "${command} : eee : yyyymmddb ${yyyymmddb} must be equal or greater than yyyymmddb_min ${yyyymmddb_min}" 
     
    393402# 
    394403d=$((${yyyymmddb} - ${yyyymmdde_max})) 
    395 if [ ${d} -gt 0 ]  
     404if [ ${d} -gt 0 ] 
    396405then 
    397406    echo "${command} : eee : yyyymmddb ${yyyymmddb} must be equal or lower than yyyymmdde_max ${yyyymmdde_max}" 
     
    409418# 
    410419d=$((${yyyymmdde} - ${yyyymmdde_max})) 
    411 if [ ${d} -gt 0 ]  
     420if [ ${d} -gt 0 ] 
    412421then 
    413422    echo "${command} : eee : yyyymmdde ${yyyymmdde} must be lower or equal to yyyymmdde_max ${yyyymmdde_max}" 
     
    495504# loop over all dates 
    496505# set current and end date 
    497 current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%10.10d",$1}') 
    498 end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%10.10d",$1}') 
    499 delta=86400 
    500 while [[ "${current}" < "${end}" ]] 
     506current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%d",$1}') 
     507declare -i current 
     508end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%d",$1}') 
     509declare -i end 
     510declare -i delta=86400 
     511while [ ${current} -lt ${end} ] 
    501512do 
    502513    # get current time at the beginning of the process for one day 
  • trunk/src/traite_msg-prod.sh

    r526 r565  
    2626# 
    2727# With these two files ``traite_msg-prod.sh`` produces 
    28 # a NetCDF file :file:`${PROJECT_ID}/MSG/{yyyy}/{mm}/{dd}/{yyyymmddmmmn}"_msg-{product}_map_15min.nc` and  
     28# a NetCDF file :file:`${PROJECT_ID}/MSG/{yyyy}/{mm}/{dd}/{yyyymmddmmmn}"_msg-{product}_map_15min.nc` and 
    2929# a GIF file :file:`${PROJECT_ID}/MSG/{yyyy}/{mm}/{dd}/{yyyymmddmmmn}"_msg-{product}_map_15min.gif`. 
    3030# 
    3131# ++ box reduction 
    3232# 
    33 # .. option:: -f  
     33# .. option:: -f 
    3434# 
    3535# If :option:`-f` option is set, previously output files will be overwritten. 
     
    7373# ======== 
    7474# 
    75 # You already used :ref:`get_msg.sh` to get MSG reference data  
    76 # during [20060801, 20060802[ and you want to produce NetCDF files and  
     75# You already used :ref:`get_msg.sh` to get MSG reference data 
     76# during [20060801, 20060802[ and you want to produce NetCDF files and 
    7777# GIF files:: 
    7878# 
     
    117117# 
    118118# $Id$ 
     119# 
     120# $URL$ 
     121# 
     122# - pinsard 20120529T150524Z loholt1.ipsl.polytechnique.fr (Linux) 
     123# 
     124#   * bug fix to handle correctly dates if translation in second on 9 digits 
     125#     (trailing 0 is automaticaly interpreted as an octal number). 
     126#     ex = 20010801 
     127#   * bug fix to handle correctly dates if translation in second of begin 
     128#     and end is not on the same number of digit 
     129#     ex : -b 20010801 -e 20010931 
    119130# 
    120131# - pinsard 2011-06-01T09:18:41Z loholt1.ipsl.polytechnique.fr (Linux) 
     
    460471# set current and end date 
    461472list_url="" 
    462 current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%10.10d",$1}') 
    463 end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%10.10d",$1}') 
    464 delta=900 
    465 while [[ "${current}" < "${end}" ]] 
     473current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%d",$1}') 
     474declare -i current 
     475end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%d",$1}') 
     476declare -i end 
     477declare -i delta=900 
     478while [ ${current} -lt ${end} ] 
    466479do 
    467480    echo "iii : looking for files of $(${date_cmd} -u -d "1970-01-01 ${current} sec" +%Y%m%dT%H%M)" 1>> ${log} 
  • trunk/src/traite_trmm.sh

    • Property svn:keywords set to Id URL
    r526 r565  
    117117# $URL$ 
    118118# 
     119# - pinsard 20120529T150524Z loholt1.ipsl.polytechnique.fr (Linux) 
     120# 
     121#   * bug fix to handle correctly dates if translation in second on 9 digits 
     122#     (trailing 0 is automaticaly interpreted as an octal number). 
     123#     ex = 20010801 
     124#   * bug fix to handle correctly dates if translation in second of begin 
     125#     and end is not on the same number of digit 
     126#     ex : -b 20010801 -e 20010931 
     127# 
    119128# - pinsard 2011-08-18T07:27:26Z loholt1.ipsl.polytechnique.fr (Linux) 
    120129# 
    121130#   * replace filelatlon.sh by geolocation_to_string_sh.sh 
    122131# 
    123 #     .. warning::  
     132#     .. warning:: 
    124133#        filenames will be modified 
    125134# 
     
    339348# loop over all dates 
    340349# set current and end date 
    341 current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%10.10d",$1}') 
    342 end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%10.10d",$1}') 
    343 delta=86400 
    344 while [[ "${current}" < "${end}" ]] 
     350current=$(${date_cmd} -u -d "${yyyymmddb}" +%s | awk '{printf "%d",$1}') 
     351declare -i current 
     352end=$(${date_cmd} -u -d "${yyyymmdde}" +%s | awk '{printf "%d",$1}') 
     353declare -i end 
     354declare -i delta=86400 
     355while [ ${current} -lt ${end} ] 
    345356do 
    346357    echo "iii : looking for files of $(${date_cmd} -u -d "1970-01-01 ${current} sec" +%Y%m%dT%H%M)" 1>> ${log} 
Note: See TracChangeset for help on using the changeset viewer.