On 2014-04-13 01:17, John Little wrote: > No-one has spoken up to state the obvious, and the OP did say "in > vim", but this task is obviously better done with grep, or a > grep-like tool. I'm guessing the OP is on Windows, and if so, IIRC > there's a "findstr" command available. Click Start->Run and enter > "cmd", then "help findstr" to see how to use it. > > (Apologies if I've misunderstood and have been too simplistic.)
I totally forgot about that, and John is right. You'd want to do something like c:\temp> findstr /i "ambulance" my_file.txt > output.txt (the "/i" switch ignores case). It won't snag any headers you might want, but hopefully it won't be too painful to add those back in. -tim -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
