Differences From Artifact [277eeb6873]:

To Artifact [231060ba2b]:


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
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







+
+
+











+
+
+
-
-
+
+
-

+



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

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  1997/05/22 09:28:22  peterg
## Removed trailing , in output.
##
## Revision 1.1  1997/05/22 08:48:21  peterg
## Initial revision
##
###############################################################

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

  

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