【shell脚本】请问 那个!是什么意思,还有经常见shell脚本中的特殊符号,列举下常用的特殊符号的意思!
#!/bin/shLOGFILE=wxx.txtecho$LOGFILEif[!-w"$LOGFILE"]thenecho"youcannotwriteto$LOGFIL...
#!/bin/sh
LOGFILE=wxx.txt
echo $LOGFILE
if [ ! -w "$LOGFILE" ]
then
echo "you can not write to $LOGFILE " >&2
fi 展开
LOGFILE=wxx.txt
echo $LOGFILE
if [ ! -w "$LOGFILE" ]
then
echo "you can not write to $LOGFILE " >&2
fi 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询