channel infp

This commit is contained in:
lickthecheese 2020-05-21 18:45:39 -04:00
parent 4e00711338
commit be01f47b7a
2 changed files with 16 additions and 0 deletions

8
bin/chainfo Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
awk '{print $2}' $1 |
awk -F ":" '{print $1}' |
cat - ~/Documents/nums |
sort | uniq -c | sort -k2 |
awk '{print $1-1}'

8
bin/chfo Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
chainfo $1 > /tmp/chacha
MACS=$(sort -h /tmp/chacha | tail -n 1)
awk '{print $1/'$MACS'*100}' /tmp/chacha