Just for the exercise, here's a version of ssb-blob-path written in FiSH shell:
ssb-blob-path.fish
Requirements
fish
(only tested with v2.7.1)base64
(coreutils)xxd
(vim?)
Usage
ssb-blob-path.fish [-h|--help] [BLOB_ID [BLOB_ID …]]
If not given on the command line, one or more BLOB_IDs
can be read from standard input.
Examples
$ ssb-blob-path.fish '&O2V61izsKwCsDJnuI43Gb39FTUxDNY0lsFM7gAKNCKI=.sha256'
/home/kas/.ssb/blobs/sha256/3b/657ad62cec2b00ac0c99ee238dc66f7f454d4c43358d25b0533b80028d08a2
$ echo '&O2V61izsKwCsDJnuI43Gb39FTUxDNY0lsFM7gAKNCKI=.sha256' | ssb-blob-path.fish
/home/kas/.ssb/blobs/sha256/3b/657ad62cec2b00ac0c99ee238dc66f7f454d4c43358d25b0533b80028d08a2