if [$# -ne 1] then echo "Usage: $0 directory" >&2 exit 1 fi 转载于:https://www.cnblogs.com/timecode-2011/archive/2012/06/28/2568433.html