We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0794dc3 commit 0511074Copy full SHA for 0511074
files/report.dat
@@ -0,0 +1,14 @@
1
+ snaps1: Counter: 4966
2
+ Opens: Counter: 357283
3
+
4
+ Instance: s.1.aps.userDatabase.mount275668.attributes
5
6
+ snaps1: Counter: 0
7
8
9
+ Instance: s.1.aps.userDatabase.test.attributes
10
11
+ snaps1: Counter: 5660
12
+ Opens: Counter: 37283
13
14
+ Instance: s.1.aps.userDatabase.mount275000.attributes
report.awk
@@ -0,0 +1,10 @@
+# Complex reporting
+# Example: awk -f report.awk files/report.dat
+#
+# Create a report to visualize snaps and instance but only when snap first counter tag is greater than zero.
+{
+ $1=$1
+}
+/snaps1/ && $NF>0{print;f=1}
+f && /Instance/ {print;f=0}
0 commit comments