View Single Post
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#57
Originally Posted by kwotski View Post
Ok, here's an amended version of the script which tries to check for symlinked directories (by parsing the output of ls -l .. yuck!) ... recursively and with caching. May well be full of holes.. feedback welcome
instead of parsing for "->", you can just use this file test function:
Code:
if -l $file
that's probably more reliable

i'll give your script a go a bit later when i have more time.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg