/+ rote()
rotate (domain and get signup) email address
This commit is contained in:
@@ -465,14 +465,32 @@ rotl() {
|
|||||||
size=$((size - 25))
|
size=$((size - 25))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://stackoverflow.com/questions/20871534/concatenate-in-bash-the-output-of-two-commands-without-newline-character
|
# if there is a second argument, only the rotation will be printed
|
||||||
{ echo "rot +$size: "; rot $size $1; } | tr "\n" " "
|
if [[ -n $2 ]] ; then
|
||||||
echo
|
rot $size $1
|
||||||
{ echo "rot -$size: "; rot -$size $1; } | tr "\n" " "
|
else
|
||||||
echo
|
# 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
|
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
|
# mounting
|
||||||
|
|||||||
Reference in New Issue
Block a user