Last active
          June 16, 2023 17:42 
        
      - 
      
- 
        Save cfbastarz/6b4f055d3739128c963cb3c93046f664 to your computer and use it in GitHub Desktop. 
    Script para lincar arquivos de análise como se fossem previsões
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #! /bin/bash | |
| inctime=/home/carlos.bastarz/bin/inctime | |
| res=TQ0299L064 | |
| pfx=CPT | |
| bpath=/mnt/beegfs/carlos.bastarz/SMNA-Oper/SMG/datainout/bam/pos/dataout | |
| datai=2019111512 | |
| dataf=2020021312 | |
| data=${datai} | |
| while [ ${data} -le ${dataf} ] | |
| do | |
| echo ${data} | |
| cd ${bpath}/${res}/${data} | |
| ficn=GPOS${pfx}${data}${data}P.icn.${res}.ctl | |
| ffct=GPOS${pfx}${data}${data}P.fct.${res}.ctl | |
| gicn=GPOS${pfx}${data}${data}P.icn.${res}.grb | |
| gfct=GPOS${pfx}${data}${data}P.fct.${res}.grb | |
| ln -svf ${ficn} ${ffct} | |
| ln -svf ${gicn} ${gfct} | |
| data=$(${inctime} ${data} +24h %y4%m2%d2%h2) | |
| done | |
| exit 0 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment