source: TOOLS/SURPACK_IPSL/number_of_files.sh @ 3624

Last change on this file since 3624 was 2136, checked in by acosce, 11 years ago

add new tools allows packing simulation alreaddy pack (so pack with a bigger frequency)

File size: 889 bytes
Line 
1#!/bin/bash
2# Script to evaluate nb of inodes which will be created on store and work
3
4NB1=0; NB2=0; SOMME=0; RESULTAT=0;
5
6# nb de listes dans output_ncrcat output_tar debug_tar restart_tar
7NB1=$( find $TMP_MIGR_DATA/IGCM_DEM -type f -name "*.list" | wc -l )
8# nb de fichiers dans les listes store_cp
9find $TMP_MIGR_DATA/IGCM_DEM -type f -name "*.list" | grep "store_cp" > tmp.$$
10for list in `cat tmp.$$` ; do
11for dir in `cat $list` ; do
12NB2=$( find $dir | wc -l )
13(( SOMME = SOMME + NB2 ))
14done
15done
16# somme des 2
17(( RESULTAT = NB1 + SOMME ))
18echo store
19echo $RESULTAT
20rm -f tmp.$$
21
22# nb de fichiers dans les listes work_cp
23NB2=0; SOMME=0; RESULTAT=0;
24find $TMP_MIGR_DATA/IGCM_DEM -type f -name "*.list" | grep "work_cp" > tmp.$$
25for list in `cat tmp.$$` ; do
26for dir in `cat $list` ; do
27NB2=$( find $dir | wc -l )
28(( SOMME = SOMME + NB2 ))
29done
30done
31echo work
32echo $SOMME
33rm -f tmp.$$
34
Note: See TracBrowser for help on using the repository browser.