I am new to Bash Scripting and would need help to make a simple script that I will run on my CentOS. I would like the script to check if
classpath is empty like this:
> [root@hdp ~]# echo $CLASSPATH
>
> [root@hdp ~]#
do: export CLASSPATH="something"
else
echo -n "There's already a classpath! Appending!"
If there already is a classpath set, append to the existing one without overwriting to it.