💾 Archived View for hajime.4teri.de › dotfiles › file › scripts › bincount.sh.gmi captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

bincount.sh - dotfiles - Collection of my dotfiles

Log

Files

Refs

---

bincount.sh (242B)

---

1 #! /bin/sh

2 bin="$(/usr/bin/ls /usr/bin | wc -l)"

3 local_bin="$(/usr/bin/ls /usr/local/bin | wc -l)"

4

5 dc_args="$bin $local_bin + pq"

6

7 total="$(echo "$dc_args" | dc)"

8

9 echo "/usr/bin: $bin"

10 echo "/usr/local/bin: $local_bin"

11 echo "total: $total"

generated w/ stagit-gemini