I have an sql dump file, from which I want to extract the Insert statements. I’m trying to do this using awk.
The insert statements span multiple lines. They start with INSERT and end with a semicolon.
I have tried using:
awk '/INSERT*;/' dump.sql
But it doesn’t work. What is the correct way of doing this? (My google-fu has failed on this one)
Thanks!
For matching multiple lines:
Running at ideone here