Subversion Repositories svnkaklik

Rev

Rev 636 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 636 Rev 638
Line 1... Line 1...
1
#!/usr/bin/awk -f
1
#!/usr/bin/awk -f
2
# merge .IVS files togeather
2
# merge .IVS files together
3
BEGIN {
3
BEGIN {
4
f="";
4
f="";
5
val="";
5
val="";
-
 
6
out_file = "measuring.txt"
6
#colums="";
7
columns="Voltage";
7
}
8
}
8
{ 
9
{ 
9
  if (f != FILENAME) {
-
 
10
    colums = colums OFS FILENAME; NR=0;
-
 
11
    do {
10
    do {
-
 
11
      if (f != FILENAME) columns = columns OFS FILENAME;
-
 
12
      f = FILENAME; 
12
      if (FNR > 43) data[$1] = data[$1] OFS $2;
13
      if (FNR > 43) data[$1] = data[$1] OFS $2;
13
    }   while (getline != 0); 
14
    }   while (getline != 0); 
14
    f=FILENAME;
-
 
15
  }
-
 
16
}
15
}
17
END{
16
END{
18
#print colum;
17
print columns > out_file;
19
for(val in data) print val,data[val];
18
for(val in data) print val,data[val] > out_file;
20
}
19
}
21
 
20