SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe this is what you are looking for. To check if a file exist and is not a link.
Try this command:
file="/usr/mda" [ -f $file ] && [ ! -L $file ] && echo "$file exists and is not a symlink"