This commit is contained in:
2025-11-04 06:20:23 -07:00
parent 6a599668b8
commit af5882d3e6
+2 -1
View File
@@ -51,4 +51,5 @@ cat "$logfile"
# then squash spaces and replace with commas # then squash spaces and replace with commas
# them awk by delimiter comma to output # them awk by delimiter comma to output
# and replace da original file with tha fixed one # and replace da original file with tha fixed one
# cat "$logfile" | sed '/^#\|^$\|^Linux/d' | tr -s ' ' ',' | awk -F, '{ cpup += $3 } END { print "sunn:",cpup / NR,$1,$3,$8,$13,$14,$15,$16,$17 }' # cat "$logfile" | sed '/^#\|^$\|^Linux/d' | tr -s ' ' ',' | awk -F, '{ cpup += $3 } END { print "sunn:",cpup / NR,$1,$3,$8,$13,$14,$15,$16,$17 }'
cat "$logfile" | sed '/^#\|^$\|^Linux/d' | tr -s ' ' ',' | awk -F, '{ cpup += $3 } END { print "sunn:",cpup / NR }'