Index: mttroot/mtt/bin/trans/mtt_update ================================================================== --- mttroot/mtt/bin/trans/mtt_update +++ mttroot/mtt/bin/trans/mtt_update @@ -11,10 +11,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.9 2000/10/13 09:55:09 peterg +## Changed state/input name to $4_$3 +## ## Revision 1.8 2000/10/13 09:28:16 peterg ## Changed regexp to /\(.*$old.*=\)/ ## ## Revision 1.7 2000/10/13 08:56:51 peterg ## Output variables as column, not row. @@ -66,11 +69,11 @@ ext=txt textfile=$1_$2.$ext infofile=mtt_list.$ext moreinfofile=mtt_list_numpar.$ext grep "$rep" <$1_struc.txt |\ - awk '{printf("%s_%s\n", $4,$3)}' \ + awk '{printf("%s\n", $4)}' \ > $infofile cat $infofile $1_sympar.$ext> $moreinfofile default='0.0' ;; *) @@ -144,11 +147,11 @@ read answer < /dev/tty case $answer in y) answered=yes for old in $in_text; do - echo $old + echo Commenting out $old sed "s/\(.*$old.*=\)/## Removed by MTT on `date`: \1/"\ <$textfile > mtt_tmp mv mtt_tmp $textfile changed=yes done @@ -172,10 +175,11 @@ read answer < /dev/tty case $answer in y) answered=yes for new in $in_info; do + echo Adding $new echo "$new = $default; # Added by MTT on `date`" >> $textfile changed=yes done ;; n)