Shell Script: about soft link# Unix - 噫吁兮,危乎高哉f*y2004-04-15 07:041 楼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*n2004-04-15 07:042 楼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*y2004-04-15 07:043 楼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*y2004-04-15 07:044 楼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.