Add snippet 'split-email-address.sh'.

This commit is contained in:
Christoph 2019-07-24 02:31:35 +02:00
parent 243a457d46
commit c8711a960f

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# usage: split-email-address.sh <e-mail-address>
echo ""
echo " E-Mail: $1"
echo " Name: ${1%@*}"
echo " Domain: ${1#*@}"
echo ""