sethmason.com The internet resource for all things Seth Mason.

Posts tagged shell

Editing Huge Amounts of Files Easily

Where I work, we have tons of HTML files that are publishing using our custom Content Management System. Sometimes, we have to change a single line on every single page. The latest case was a and change that needed to be made. Rather than use publishing and database resources just to make this change, I use the power of the shell. Specifically, I use find, sed and a shell script that I wrote. It’s based on a shell script in the Unix Power Tools book.

[Read full article]