converting ksh to bash - typeset commands

Hi all,

Am trying to convert a script written in ksh to a bash shell.

At the moment, am stumped with the typeset -u command and I can't find an equivalent of it in bash.

integer function is also not working as is the following if statement

if [[ $inst = @(dev01|dev02) ]] && [[ `hostname` = wlgprod001 ]]; then
   continue
fi

Is there any site out there that discusses about converting ksh to bash and the gotchas?

Please advise how to get around this?

echo "adfsddIfsfdDDDD" | tr '[a-z]' '[A-Z]'
ADFSDDIFSFDDDDD

Modern bash:

$ a=dhTy
$ echo "${a^^}"
DHTY
1 Like