/+ rote()

rotate (domain and get signup) email address
This commit is contained in:
fro
2025-08-27 19:58:08 -05:00
parent 47031ebfbf
commit 29c898ebeb

View File

@@ -465,14 +465,32 @@ rotl() {
size=$((size - 25))
fi
# if there is a second argument, only the rotation will be printed
if [[ -n $2 ]] ; then
rot $size $1
else
# https://stackoverflow.com/questions/20871534/concatenate-in-bash-the-output-of-two-commands-without-newline-character
{ echo "rot +$size: "; rot $size $1; } | tr "\n" " "
echo
{ echo "rot -$size: "; rot -$size $1; } | tr "\n" " "
echo
fi
fi
}
rotm() {
if [[ -n $1 ]] ; then
datestamp=$(date +%y%m%d)_
rotl=$(rotl $1 0)
# ${param/pattern/replacement}
rotl="${rotl/./}"
emailaddress=$datestamp$rotl"@468910.xyz"
echo $emailaddress
fi
}
# ---
# mounting