f***y 发帖数: 98 | 1 How do I tell a soft link links to a directory or a file in a shell script?
(maybe in a perl script as well)
Thanks. |
w**n 发帖数: 88 | 2 perl: test on the output of readlink
【在 f***y 的大作中提到】 : How do I tell a soft link links to a directory or a file in a shell script? : (maybe in a perl script as well) : Thanks.
|
f***y 发帖数: 98 | 3 what does readlink mean/do?
I just tried one thing. Using -d to test it seems to work.
script?
【在 w**n 的大作中提到】 : perl: test on the output of readlink
|
c******y 发帖数: 37 | 4 Hint:
use `ls -dF link'. If the soft link is pointed to a directory,
'/' will show up as the last char of the output.
【在 f***y 的大作中提到】 : How do I tell a soft link links to a directory or a file in a shell script? : (maybe in a perl script as well) : Thanks.
|