Tuesday, April 24, 2012

Re: How I can run vim commands from a bash script?

Oups, you are right I have forgotten the filename:
for i in *.txt; do vim $i "%s/foo/bar/g"; done

Now it opens each txt file but it doesn't replace or save them.

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