summaryrefslogtreecommitdiff
path: root/storage/ndb/home/bin/signallog2html.lib/uniq_blocks.awk
diff options
context:
space:
mode:
Diffstat (limited to 'storage/ndb/home/bin/signallog2html.lib/uniq_blocks.awk')
-rw-r--r--storage/ndb/home/bin/signallog2html.lib/uniq_blocks.awk29
1 files changed, 29 insertions, 0 deletions
diff --git a/storage/ndb/home/bin/signallog2html.lib/uniq_blocks.awk b/storage/ndb/home/bin/signallog2html.lib/uniq_blocks.awk
new file mode 100644
index 00000000000..43f48d1cde1
--- /dev/null
+++ b/storage/ndb/home/bin/signallog2html.lib/uniq_blocks.awk
@@ -0,0 +1,29 @@
+BEGIN{
+ NAMES[""]="";
+ ORDER[0]="";
+ NUM=0;
+}
+
+{
+ if(NAMES[$2$3]!=$2$3){
+ NAMES[$2$3]=$2$3;
+ ORDER[NUM]=$2$3;
+ NUM++;
+ }
+
+ if(NAMES[$4$5]!=$4$5){
+ NAMES[$4$5]=$4$5;
+ ORDER[NUM]=$4$5;
+ NUM++;
+ }
+
+
+}
+END{
+ for(i=0; i<NUM; i++){
+ LIST=ORDER[i]" "LIST;
+
+ }
+ print LIST;
+}
+