[root@iZuf6fuoapic5utz51jgt5Z ~]# grep chapter[0-9]* filethis is chapter.this is chapter123this is oschapter1
初学者,请问为什么会有第一条?
grep chapter[0-9]就是[]内的字符可以有,但是必须在0-9之间,但也可以没有。所以有第一条。