How to edit a bunch of files with one simple command:
perl -pi.bak -e 's/bad/good/' ~/files.*.conf
Replaces occurence of 'bad' with 'good' in all matching files and creates a .bak copy of the modified files.
Replace serial number in zone files:
perl -pi.bak -e 's/200\d\d\d\d\d\d\d/2006053001/' db.domain.tld