Re-use AWK components
[khatus.git] / bin / khatus_parse_ps
diff --git a/bin/khatus_parse_ps b/bin/khatus_parse_ps
deleted file mode 100755 (executable)
index a0f41c5..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /usr/bin/awk -f
-
-BEGIN {
-    OFS = "|"
-    Kfs = ":"
-}
-
-{
-    pid       = $1
-    state     = $2
-    Pids[pid] = 1
-    Total_Per_State[state]++
-}
-
-END {
-    print("total_procs", length(Pids))
-    for (state in Total_Per_State) {
-        print("total_per_state" Kfs state, Total_Per_State[state])
-    }
-}
This page took 0.023979 seconds and 4 git commands to generate.