Changeset 4203 for dynamico_lmdz/simple_physics/bash
- Timestamp:
- Dec 20, 2019, 3:25:27 PM (5 years ago)
- Location:
- dynamico_lmdz/simple_physics/bash
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/simple_physics/bash/replace_keywords.sh
r4202 r4203 10 10 function replace_key() 11 11 { 12 LOW= $113 UP= $212 LOW="$1" 13 UP="$2" 14 14 sed -i -e "s/\b${LOW}\b/${UP}/g" $3 15 15 } … … 22 22 # enddo => ENDDO 23 23 replace_key subroutine SUBROUTINE $NEW 24 replace_key 'do i=' 'DO i=' $NEW 25 replace_key 'do k=' 'DO k=' $NEW 26 replace_key 'end do' 'END DO' $NEW 27 replace_key 'parameter' 'PARAMETER' $NEW 28 replace_key 'integer' 'INTEGER' $NEW 29 replace_key 'real' 'REAL' $NEW 30 replace_key 'then' 'THEN' $NEW 31 replace_key 'else' 'ELSE' $NEW 32 replace_key 'endif' 'END IF' $NEW 33 replace_key 'end if' 'END IF' $NEW 24 34 diff $NEW $ORIG 25 35 cp -i -u $NEW $ORIG
Note: See TracChangeset
for help on using the changeset viewer.