Home » Questions » Computers [ Ask a new question ]

How to find all soft links (symbolic links) in current directory?

How to find all soft links (symbolic links) in current directory?

Question relates to shell-scripting in bash.

Asked by: Guest | Views: 290
Total answers/comments: 1
bert [Entry]

"See 'CONDITIONAL EXPRESSIONS' in man bash – in this case you want -h:

for file in *
do
if [ -h ""$file"" ]; then
echo ""$file""
fi
done"