8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
+
+
+
-
+
|
## Omitting all parameter in 2nd argument
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1 2002/11/14 05:48:53 gawthrop
## Useful utility not yet in mtt
##
###############################################################
# Copyright (C) 2002 by Peter J. Gawthrop
sys=$1
pars=$2
outfile=${sys}_subs.r
infile=${sys}_numpar.txt
echo Creating ${outfile} from ${infile}
cat<<EOF > ${outfile}_1
%% File ${outfile} generated on `date` from ${infile}
%% All parameters replaced by numbers except for:
%% ${pars}
EOF
sed 's/#/%/g' < Compensator_numpar.txt | sed 's/=/:=/' >> ${outfile}_1
sed 's/#/%/g' < ${infile} | sed 's/=/:=/' >> ${outfile}_1
cat >> ${outfile}_1 <<EOF
ON ROUNDED; %% Floating point
END;
EOF
gawk '
|