一个技巧可以是使用find查找它们,但我更喜欢更干净的东西:)
发布于 2011-12-04 22:16:17
我得到了这样的东西,它起作用了,但我不喜欢它:
for f in $(find -L $SOURCE_DIR -samefile "$folder$file")
do
if [ -L "$f" ]
then
do_something_with_the_link $(dirname "$f")/ $(basename "$f")
fi
donehttps://stackoverflow.com/questions/7798113
复制相似问题