Skip to content

Instantly share code, notes, and snippets.

View p1-ra's full-sized avatar
:shipit:
Focusing

p1-ra

:shipit:
Focusing
View GitHub Profile
@p1-ra
p1-ra / uudecode.sh
Created June 6, 2021 11:35 — forked from rkitover/uudecode.sh
uudecode in POSIX sh
uudecode_sh() {
if command -v uudecode >/dev/null; then
uudecode -p
return
fi
bs=0
while read -rs t ; do
if [ "$bs" -eq 1 ] ; then
if [ "a$t" = "aend" ] ; then