#! /bin/sh
# l2u, u2l letter case conversion of a string, l2i for inversion (n.i.)

[ "$(id -un)" = "root" ]&&{ echo "cannot execute as 'root'";exit 1; }

fth=/usr/local/bin/calc4th

[ -n "${1}" ]||{ echo -e "\tletter case conversion\n\t\tuse: ${0} text\n\t\toutput is to stdout";exit 1; }

[ "$(basename ${0})" = "l2u" ]&&{
    echo "s\" ${1}\" pad over 2* s>upper type cr bye"|${fth}
    exit
    }||{
    echo "s\" ${1}\" pad over 2* s>lower type cr bye"|${fth}
    }

exit

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
