在ksh shell中test -L filename和test -h filename有什么区别?在手册页中,两者都用于标识符号链接,但我想知道确切的区别。 以下是手册页中的说明。 -h file True if file exists and is a sym-
bolic link.
-L file True if file exists and is
有人可以帮我理解下面这段代码,它决定了从数据库中选出数据的开始和结束日期。 # Get the current time as the stop time.
#
stoptime=`date +"%Y-%m-%d %H:00"`
if test $? -ne 0
then
echo "Failed to get the date"
rm -f $1/.optpamo.p