Changeset 1160 for trunk/libIGCM/AA_metrics_LMDZ
- Timestamp:
- 01/27/15 17:54:25 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_metrics_LMDZ
r1159 r1160 80 80 #set -vx 81 81 82 function METRICS_sed83 {84 # Usage : METRICS_sed metrics_template var_name myvalue85 # In file metrics_template modify the line containing var_name=xxx into var_name=myvalue86 IGCM_debug_PushStack "METRICS_sed"87 88 # Test if the fichier exist89 if [ ! -f ${1} ] ; then90 echo "WARNING : ${1} file does not exist. Following will not be done : METRICS_sed : ${1} ${2} ${3}"91 IGCM_debug_PopStack "METRICS_sed"92 return93 fi94 95 sed -e "s/^${2}\ *=.*/${2} = ${3}/" ${1} > ${1}.tmp96 RET=$?97 echo "METRICS_sed : ${1} ${2} ${3}"98 \mv ${1}.tmp ${1}99 100 IGCM_debug_PopStack "METRICS_sed"101 return $RET102 }103 104 82 IGCM_sys_MkdirWork ${RUN_DIR_PATH} 105 83 IGCM_sys_Cd ${RUN_DIR_PATH} … … 141 119 IGCM_sys_MkdirWork ${RUN_DIR} 142 120 IGCM_sys_Cd ${RUN_DIR} 121 IGCM_sys_MkdirWork METRICS 143 122 144 123 #==================================
Note: See TracChangeset
for help on using the changeset viewer.