Changeset 2315 for CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver
- Timestamp:
- 08/06/14 15:17:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver
r2302 r2315 41 41 # Usage : LMDZ_sed_xml xml_file output_file attribute value 42 42 # In file xml_file modify at the line containing id="output_file" the attribute "attribute=xxx" into "attribute=value" 43 43 44 IGCM_debug_PushStack "LMDZ_sed_xml" 44 45 # Test if the fichier exist 45 46 if [ ! -f ${1} ] ; then 46 47 IGCM_debug_PopStack "LMDZ_sed"48 47 echo "WARNING : ${1} file does not exist. Following will not be done : LMDZ_sed : ${1} ${2} ${3} ${4}" 48 IGCM_debug_PopStack "LMDZ_sed_xml" 49 return 49 50 fi 50 51 sed -e "/id=\"${2}\"/s/\(${3}=\"\)[^\"]*\(\"\)/\1${4}\2/" ${1} > ${1}.tmp … … 52 53 echo "LMDZ_sed : ${1} ${2} ${3} ${4}" 53 54 \mv ${1}.tmp ${1} 54 55 IGCM_debug_PopStack "LMDZ_sed_xml" 55 56 return $RET 56 57 }
Note: See TracChangeset
for help on using the changeset viewer.