One Quickie


Replacing a string in a set of files (Unix->General)
% perl -pi.bak -e 's/OLDSTRING/NEWSTRING/g' *.html
This will leave "*.bak" files around of the original version, in case the replacement string didn't quite do what you wanted.



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com