Hi there,
I want to check whether a file is a link or not.
Eg:
I have a directory structure as follows:
mkdir -p abc/bcd/cde/def
touch abc/bcd/cde/def/file
cd abc/
ln -s bcd link
Now, abc/link/cde/def/file is actually not a file. Its a link
Now I want to remove this file entry while listing the files in the directory "abc".
Is there any command/script that says "abc/link/cde/def/file" file is a link.
I need this because, I have a huge list of files and in that list, I have this kind of links as well. I need to filter out the links.
Please help me.
Thanks in advance.