我试图从下面的列表中匹配特定的数字模式。 我的要求是只匹配report.20150325
到report.20150331
。请帮忙。用于匹配数字模式的正则表达式
report.20150319
report.20150320
report.20150321
report.20150322
report.20150323
report.20150324
report.20150325
report.20150326
report.20150327
report.20150328
report.20150329
report.20150330
report.20150331
'的awk“/report.20150325/{f=1}/report.20150331/{print;f=0 } f'file' – 2015-04-06 07:38:25
记住要固定您的RE并逃离您想从字面上理解的元字符。 – 2015-04-06 12:55:54