sh脚本中if条件

文件 含义 -r True if file exists and is readable -w True if file exists and is writable -x True if file exists and is executable -f True if file exists and is a regular file -d True if file exists and is a directory -c True if file exists and is a character special file -b True if file exists and is a block special file -p True if file exists and is a named pipe (FIFO) -u True if file exists and is a SETUID file -g True if file exists and is a SETGID file -k True if file exists and the sticky bit is set -s True if file exists and has a size greater than zero 逻辑 含义 ! Not -a And -o Or (has lower precedence that -a) ( )...

2007-03-03 · wuan