This seems like it should be an easy thing to do, I just can't figure
out how. I've got a series of files that I need to do a long list of
'find and replace's on. Someone has also nicely provided me with a
file that contains all of the vi commands to do all of these 'find and
replace's, e.g. the file is a long list of
:g/HD13 ILE/s//HD3 ILE/g
:g/HB2 LEU/s//HB1 LEU/g
Instead of cuting and pasting each and every ':g ...' line into vi to
do each find and replace I'd like to just read in the file that
contains the commands and execute them on the file that I'm editing.
Is this possible? I realize that I could easily just write a little
script to do the above but I'm curious to see if I can do it in vi
with one fell swoop. Thanks for any help in advance!