由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Shell Script: about soft link
相关主题
Korn shell scriptshell programming
Shell Questionwhere can I find some good website for C Shell ?
[转载] 再请教高手Shell Script
how to write a recursive fcn using ksh to find all the occurances of a file?为什么我就是不会写Shell script?
script问题----运行多个文件How to set environment variables for CGI scripts?
home directory突然丢失!how to convert csh shell script to dos batch file
Solaris C问题求教:readlink返回空a question in shell script
which shell is best?Help! shell programming
相关话题的讨论汇总
话题: script话题: shell话题: soft话题: link话题: directory
进入Unix版参与讨论
1 (共1页)
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.

1 (共1页)
进入Unix版参与讨论
相关主题
Help! shell programmingscript问题----运行多个文件
[转载] a question about shell scripthome directory突然丢失!
Shell Script Question about HostnameSolaris C问题求教:readlink返回空
Shell Script Questionwhich shell is best?
Korn shell scriptshell programming
Shell Questionwhere can I find some good website for C Shell ?
[转载] 再请教高手Shell Script
how to write a recursive fcn using ksh to find all the occurances of a file?为什么我就是不会写Shell script?
相关话题的讨论汇总
话题: script话题: shell话题: soft话题: link话题: directory