Overview
Comment:Initial revision
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 33addd2c1898c130376c37bf09baf8b0b155cee1edd191438cc60f072a985c79
User & Date: gawthrop@users.sourceforge.net on 1997-05-22 08:48:21
Other Links: branch diff | manifest | tags
Context
1997-05-22
09:28:22
Removed trailing , in output. check-in: 40a245a375 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:48:21
Initial revision check-in: 33addd2c18 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
07:38:27
Added command line info to .doc files (makedoc) check-in: bd0f279123 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/trans/name2index version [c6d2d7651a].

































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
#! /bin/sh

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

# Bourne shell script: name2index

# Converts names to array index

# Copyright (c) P.J.Gawthrop, 1997.

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

awk '
{
  name_index[$4"_"$3]=$2;
}
END{
  N=split(names,Names,",");
  for (i=1; i<=N; i++) {
    printf("%i,",name_index[Names[i]]) ;
  }
  printf("\n");
}'  names=$2 < $1_struc.txt

  


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