The -L or -H option to test.
if [ -h <file> ]; then echo "It is a symbolic link" fi
if [[ -L ${FILE} ]]; then : symlink else : not a symlink fi
-L file True if file exists and is a symbolic link.
no -h option
but -L can't be used in sh scripts! :
$ [ -L tree ] && echo aaa test: argument expected
documented on: 11:38:03