Differences From Artifact [536b5b2f71]:

To Artifact [eaeb9d8cae]:


1
2






















3
4
5
6
7
8
9
10
11
12
13
14

15
16




17
18
#! /bin/sh























case $2 in
    odeso)
	i=1;
	;;
    odes)
	i=2;
	;;
    *)
	i=1;
        ;;
esac


echo Creating $1_$2.dat





awk  -F# '{print $i}' i=$i <$1_odes.dat2 > $1_$2.dat



>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


|


|


|



>


>
>
>
>
|

1
2
3
4
5
6
7
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
44
45
#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: dat22dat
# Splits the data file into output and state bits

# Copyright (c) P.J.Gawthrop 1999

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
###############################################################


# Find Nx and Ny
Nx=`grep "MTTNx " <$1_def.r | awk '{print $3}' | sed 's/;//'`
Ny=`grep "MTTNy " <$1_def.r | awk '{print $3}' | sed 's/;//'`

echo $Nx $Ny
case $2 in
    odeso)
	First=1; let Last=$First+$Ny
	;;
    odes)
	First=$Ny+2; let Last=$First+$Nx
	;;
    *)
	First=1; let Last=$Ny+1
        ;;
esac

echo $First $Last
echo Creating $1_$2.dat

awk '{
    for (i=First;i<=Last;i++)
	printf("%s ", $i);
    printf("\n"); 
}' First=$First Last=$Last <$1_odes.dat2  > $1_$2.dat


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]