概述
背景
环境
os
git-bash
单个日期
> grep -E ‘2020-05-21‘ <file>
连续日期
> grep -E ‘2020-05-2[0-9]‘ <file>
> grep -E ‘2020-05-(1[5-9]|2[0-4])‘ <file>
间断日期
> grep -E ‘2020-05-(1[0-4]|2[0-4])‘ <file>
反选
> grep -E ‘2020-02-[^1][0-9]‘ <file>
匹配 年份 与 月份
匹配 星期
awk
原文:https://www.cnblogs.com/xy14/p/12928876.html