source: TOOLS/PACK_IPSL/create_listing.sh @ 1736

Last change on this file since 1736 was 1736, checked in by acosce, 12 years ago

Pack_ipsl : change name of files list to copy

  • Property svn:executable set to *
File size: 1005 bytes
Line 
1#!/bin/bash
2
3
4#cree le listing du repertoire REPtoLISTE ($1)
5#exemple REPtoList=/dmnfs09/cont003/p86cadul/IGCM_OUT
6
7REPtoList=$1
8
9
10EXE_DIR=$(dirname ${0})
11SCRIPT_NAME=$(basename ${0} )
12export IGCM_DEM=${IGCM_DEM:-${SCRATCHDIR}/IGCM_DEM}
13export IGCM_TMP=${IGCM_TMP:-${IGCM_DEM}/tmp}
14
15source ${EXE_DIR}/DEM_utilities.sh
16DEM_log -0 "Demarrage de ${SCRIPT_NAME}"
17
18find $REPtoList -printf "%y %s %p \n" >> ${IGCM_DEM}/Listing.txt
19
20cd $EXE_DIR
21#lors de la creation de la liste on retire les repertoires SPIN qui seront traites ulterieurement par le ccrt
22sed '/SPIN/d' ${IGCM_DEM}/Listing.txt > ${IGCM_TMP}/Listing_tmp.txt; mv ${IGCM_TMP}/Listing_tmp.txt ${IGCM_DEM}/Listing.txt
23# on retire les fichiers issus de liens : le champ de la premiere colonne est alors un l
24awk '{if ($1!="l") print $0}' ${IGCM_DEM}/Listing.txt > ${IGCM_TMP}/Listing_tmp.txt; mv ${IGCM_TMP}/Listing_tmp.txt ${IGCM_DEM}/Listing.txt
25
26#possibilite de retirer d'autres types de fichiers ex: .jnl*
27
28
29DEM_log -0 "Fin de ${SCRIPT_NAME}"
30
Note: See TracBrowser for help on using the repository browser.