I\'m trying to check if a symlink exists in bash. Here\'s what I\'ve tried.
mda=/usr/mda if [ ! -L $mda ]; then echo \"=> File doesn\'t exist\" fi mda
Is the file really a symbolic link? If not, the usual test for existence is -r or -e.
-r
-e
See man test.
man test