summaryrefslogtreecommitdiffstats
path: root/bin/cpumhz
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cpumhz')
-rwxr-xr-xbin/cpumhz9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/cpumhz b/bin/cpumhz
new file mode 100755
index 0000000..cf9ba08
--- /dev/null
+++ b/bin/cpumhz
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# cpumhz tool by Tanel Poder [https://0x.tools]
+
+grep MHz /proc/cpuinfo | awk '{ split($4,x,".") ; printf substr(x[1],1,2) "00..99 \n" }' \
+ | sed 's/^0/ /' | sort | uniq -c \
+ | awk '{ printf $0 ; for(x=0;x<$1;x++) printf "#"; printf "\n" }' \
+ | sort -nbrk 2
+