有时需要在Shell中判定当前是周日的情况,示例代码如下: if [[ $(date +%u) -gt 6 ]] ; then fi 未经允许不得转载:阿藏博客 » Linux Shell如何判定当前时间是周日