snezzy/spencer/inf

5 lines
322 B
Plaintext
Raw Normal View History

2022-03-13 19:12:17 -07:00
NUMREM=$(($(grep OPCL -A256 ~/projects/snezzy/spencer/opcodes | wc -l)-1))
PERCREM=$(echo "scale=4; $NUMREM/2.56" | bc)
[ ! -z "$1" ] && grep -A256 OPCL ~/projects/snezzy/spencer/opcodes | grep -E "$1" | nvim
echo $((256-$NUMREM)) done, $NUMREM remaining "($(echo scale=4\; 100-$PERCREM | bc)% done, $PERCREM% remaining)"