bash shell eom of last-month 2026-12-02 上月初,上月末 lm_first=$(date -d last-month +%Y%m01) lm_end=$(date -d "$(date +%Y%m01) -1day" +%Y%m%d) echo $lm_first $lm_end 分类:Linux | 标签: | 相关日志