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.12 2000/10/14 16:11:00 peterg +## Made all variables, states etc lower case +## ## Revision 1.11 2000/10/13 11:07:00 peterg ## Added initialisation for state and input ## ## Revision 1.10 2000/10/13 10:56:07 peterg ## Now uses the full name from the struc file - no need to recreate. @@ -74,13 +77,12 @@ state|input) ext=txt textfile=$1_$2.$ext infofile=mtt_list.$ext moreinfofile=mtt_list_numpar.$ext - grep "$rep" <$1_struc.txt |\ - awk '{printf("%s\n", $4)}' \ - > $infofile + awk '{if ($1==rep) printf("%s\n", $4)}' rep=$2 \ + <$1_struc.txt >$infofile cat $infofile $1_sympar.$ext> $moreinfofile default='0.0' ;; *) echo Representation $rep not implemented