3 回答
慕妹3242003
TA贡献1824条经验 获得超6个赞
#!/bin/bash
if [ -d $1 ] then echo "$1 is a directory." exit elif [ -f $1 ] then echo -n "$1 is a file, " if [ -L $1 ] then echo "and it is also a symbolic link." A=`ls -L $1` if [ -e $A ] then echo "Symbolic link exist." else echo "Symbolic link not exist." fi exit else echo "but it is not a symbolic link." exit fi fi |
添加回答
举报
0/150
提交
取消