Posts about tools:

Search and Replace in Multiple Files

25 July, 2015

Last semester I had to write a static website by hand with no templating resulting in a lot of duplicated code across multiple pages. I had already finished most of the project when I realised that the main page of the project should be named index.html instead of home.html. I renamed the file, but that left me with countless references to “home.html” that needed to be changed, and I wanted to change them all at once. Enter sed.