Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@arheops: Not sure how your changed command would have worked. First you are not escaping the [ and ]. Your first pattern /[section]/ will match any line which has one of s,e,c,t,i,o,n in it. Second you are using section instead of section_name2. I don't understand how that would work too.