我試圖從下面的列表中匹配特定的數字模式。 我的要求是隻匹配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