Adding lolcate and associated pieces for it

This commit is contained in:
Chris Cochrun 2021-04-12 20:12:55 -05:00
parent ae72f8222c
commit ac56e431b6
14 changed files with 105 additions and 10 deletions

View file

@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/bash
awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \
<(rg 'cpu ' /proc/stat) <(sleep 1;rg 'cpu ' /proc/stat)