--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/362a2060-58a7-465a-8f7c-d837717f3347n%40googlegroups.com.
assuming paragraph means there are empty lines between the paragraphs, awk uses the empty string as a record separator specifying the same. So
gawk /SQLSTATE=/ RS= ORS=\n\n datafile > a
creates a file in the same format, but with only those paragraphs containing SQLSTATE= . Not even the equals sign is a metacaracter, so no escaping is needed. When redirecting output, I use the convention that a is a transitory file, that can always be overwritten. If I wish to keep it, I then rename it.
As far as I can see this will work in an MS command window, or Unix versions. If you don't have an awk in the system gnu awk is downloadable. It is an executable. It relies on no dlls.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/58f2565c67921d04b06cb2e025d3951c.squirrel%40webmail.vybenetworks.com.