source: TOOLS/MOSAIX/rangement.bash @ 3620

Last change on this file since 3620 was 3620, checked in by omamce, 3 years ago

O.M. : continue first commit

  • Property svn:executable set to *
File size: 531 bytes
Line 
1#!/bin/bash
2
3source ./Setup.bash
4
5
6# ============================================================
7
8for ATM in LMD9695 LMD144142 ICO30 ICO40 ICO450 dynamico30 dynamico40 dynamico450
9do
10    for OCE in ORCA2.3 eORCA1.2 ORCA025
11    do
12        Liste=$(ls *${ATM}*_*${OCE}*.nc *${OCE}*_*${ATM}*.nc  *${ATM}x${OCE}*.nc *${OCE}x${ATM}*.nc 2> /dev/null  )
13
14        if [[ -z ${Liste} ]] ; then
15            echo "${ATM} : ${OCE} : Vide "
16        else
17            echo "${ATM} : ${OCE} : ${Liste}"
18            mkdir -p ${OCE}x${ATM}
19            mv ${Liste} ${OCE}x${ATM}
20
21        fi
22       
23    done
24done
Note: See TracBrowser for help on using the repository browser.