I want something similar to this:
if [ -d "$1" ] then echo "Directory"
but with soft link:
if [ ??? "$1" ] then echo "Softlink"
According to docs Bash-Beginners-Guide:
[ -h FILE ] True if FILE exists and is a symbolic link.