avatar
Shell Script: about soft link# Unix - 噫吁兮,危乎高哉
f*y
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.
avatar
w*n
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.

avatar
f*y
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
avatar
c*y
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。