取 wow.ssorc.tw 的 wow
echo wow.ssorc.tw | sed 's/\([^@.]*\)\.\([^@]*\)/\1/g'
取 wow.ssorc.tw 的 ssorc.tw
echo wow.ssorc.tw | sed 's/\([^@.]*\)\.\([^@]*\)/\2/g'
其它
取 wow.ssorc.tw 的 wow
echo wow.ssorc.tw | sed 's/\([^@.]*\)\.\([^@]*\)/\1/g'
取 wow.ssorc.tw 的 ssorc.tw
echo wow.ssorc.tw | sed 's/\([^@.]*\)\.\([^@]*\)/\2/g'
其它
留言