I have finally discovered how to automate the nice regular-expressions capable search-and-replace functionality with Vim. This provides a way to run Vim commands without having to ever enter the program! Very useful for automation. Sed is a great tool, but I am so used to Vim, and usually computational speed is not my primary concern.
vim -c %s/old/new/g -c wq somefile.txt
I found the information on how to do this in this post.
Life is good!
No comments yet.
Leave a comment!
You must be logged in to post a comment.
