Overview
Comment:Does away with the # symbol in the file - uses _de to get Nx Ny
instead
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 1d58fa5dab82ee1fc652162171bb8ae190af2a8d04dec25c13af541f463a7ae6
User & Date: gawthrop@users.sourceforge.net on 1999-03-15 21:55:36
Other Links: branch diff | manifest | tags
Context
1999-03-15
21:57:38
Removed the # symbol check-in: 5f62b45e0d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
21:55:36
Does away with the # symbol in the file - uses _de to get Nx Ny
instead
check-in: 1d58fa5dab user: gawthrop@users.sourceforge.net tags: origin/master, trunk
07:29:25
Fixed various obscure reduce bugs
THIS NEEDS A MAJOR REWRITE!!!!
check-in: a3ef8b6bcf user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/dat22dat from [536b5b2f71] to [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 ]