It's funny that I didn't think to create this shell script until now: https://co...
R.L. Dane :Debian: :FreeBSD: :OpenBSD: :NetBSD:🍵 :MiraLovesYou: @rl_dane@polymaths.social
It's funny that I didn't think to create this shell script until now:
https://codeberg.org/rldane/scripts/src/branch/main/spongebob
I initially was trying to write it in #POSIX #shell without any external dependencies (for speed), but the lack of ${var^} and ${var,} mean HUGE case statements, but I could generate those in bash and paste them in, lol.
Then I came to the lack of ${var:i:1} for splitting variables, and I just kind of gave up.
I guess I could have munged some way of converting a string into an array somehow, but it was so much easier to just write it in 23 lines of bash. :P