[Ilugc] Problem with symlink

Zico mailzico at gmail.com
Wed Nov 17 00:25:16 IST 2010


 I have a very large directory with various documents. And I am trying to
remove all it`s symlinks. Normal symlinks are already being removed. But
symlinks that point to other symlinks, cannot be found. I think there will
only be a few, and I will fix them by hand. And, I want to do something
like:

1. find all symlinks
2. use readlink (or simmilar) to follow link
3. test if new file is also symlink
4. if yes, then print double-symlink


-- 
Best,
Zico


More information about the ilugc mailing list