declare - it is used to declare shell variables and functions, set their attributes and display their values

To declare a variable
$ declare var
$ var=65

To display the options and attributes of each variable name
$ declare -p

To declare a variable with a string value of all capital letters
$ declare -l strvar="WELCOME TO ILUGC"

To declare a variable with a string value of all small letters
$ declare -u strvar="welcome to ilugc"



regards,
T.Dhanasekar