Sunday, May 27, 2012

running a batch of commands against one file.

Running a file of commands against a single file.
I can create a file of several hundred commands all of
the form
:% s/foo/bar/

Of course foo and bar are different for each such command. Now
I want to run all of those commands against file mainfile.

How do I do this? Or is it easier to use awk?

--
John Culleton
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Police Procedural and Expose: "Death Wore Black"
"Create Book Covers with Scribus"
http://www.booklocker.com/books/4055.html

--
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

No comments:

Post a Comment