... | ... |
@@ -13,7 +13,7 @@ for i in $(seq 4); do |
13 | 13 |
snmpget -v 1 -c public $printer \ |
14 | 14 |
${prtMarkerColorantValue}.$i \ |
15 | 15 |
${prtMarkerSuppliesLevel}.$i \ |
16 |
- ${prtMarkerSuppliesMaxCapacity}.$i | awk ' |
|
16 |
+ ${prtMarkerSuppliesMaxCapacity}.$i | awk -v dq='"' ' |
|
17 | 17 |
BEGIN{ |
18 | 18 |
i=0 |
19 | 19 |
} |
... | ... |
@@ -22,7 +22,7 @@ for i in $(seq 4); do |
22 | 22 |
i++ |
23 | 23 |
} |
24 | 24 |
END{ |
25 |
- printf("%s: %d%%\n",a[0],a[1]/a[2]*100) |
|
25 |
+ printf("%s: %d%%\n",gensub(dq, "", "g", a[0]),a[1]/a[2]*100) |
|
26 | 26 |
}' |
27 | 27 |
done |
28 | 28 |
echo |