{multi line
.......
.......
pattern}
{
some other stuff
.........
}
{multi line
.......
.......
pattern}
{
some other stuff
.........
}
and so on
I want to redirect every multiline pattern in a new file using awk
---------- Post updated at 07:10 PM ---------- Previous update was at 07:05 PM ----------
I'm using the following command
awk '/start pattern/,/end pattern/' file_to_search > file_to_redirect
it's working but it is only extracting first pattern not the every multiline pattern