I am migrating my blog, and all the posts have metadata at the top of the file. As a result I have a group of nearly 100 files in a directory where I want to do a search and replace for:
^permalink: http://blog.olddomain.com/(.*)$
to
permalink: http://blog.newdomain.com/$1
in all 100 files.
What commands would I use to do this?