source: TOOLS/PACK_IPSL/create_listing.sh @ 1729

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

We delete link files from the listing

  • Property svn:executable set to *
File size: 891 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
15
16find $REPtoList -printf "%y %s %p \n" >> ${IGCM_DEM}/Listing.txt
17
18cd $EXE_DIR
19#lors de la creation de la liste on retire les repertoires SPIN qui seront traites ulterieurement par le ccrt
20sed '/SPIN/d' ${IGCM_DEM}/Listing.txt > ${IGCM_TMP}/Listing_tmp.txt; mv ${IGCM_TMP}/Listing_tmp.txt ${IGCM_DEM}/Listing.txt
21# on retire les fichiers issus de liens : le champ de la premiere colonne est alors un l
22awk '{if ($1!="l") print $0}' ${IGCM_DEM}/Listing.txt > ${IGCM_TMP}/Listing_tmp.txt; mv ${IGCM_TMP}/Listing_tmp.txt ${IGCM_DEM}/Listing.txt
23
24#possibilite de retirer d'autres types de fichiers ex: .jnl*
Note: See TracBrowser for help on using the repository browser.