I have some many files each file has a set of lines in a given pattern. I want to match those multiple lines at once and do some operations on them such as delete, move to another file etc.
the multiple lines in a file are as given below.
self.unsupported_cmds = [r'\s*clns\s+routing',
r'\s*bfd\s+graceful-restart',
r'\s*ip\s+default-network',
r'\s*ip\s+default-gateway',
r'\s*ip\s+subnet-zero',
r'\s*ip\s+cef\s*$' ]
The lines within square brackets may vary.
Help me how to do it.