Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash if is symlink

if [[ -L "$file" && -d "$file" ]]
then
    echo "$file is a symlink to a directory"
fi
Source by qastack.com.br #
 
PREVIOUS NEXT
Tagged: #bash #symlink
ADD COMMENT
Topic
Name
7+8 =