Subversion Repositories svnkaklik

Rev

Rev 636 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

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