Category Archives: Perl

Replace Strings in Multiple Files

The best tool for replacing strings is Perl. It can even do it for multiple files. You don’t need to know much Perl to use the “Perl PIE” technique, that turns a potentially long script into a one-liner. I used … Continue reading

Posted in Perl, Shell Script | Leave a comment

Magic Folder to Convert DOC and OpenOffice to PDF

Most of the information in this post is derived from http://www.tech-faq.com/convert-word-to-pdf.html. The code’s reposted here as a service, because the code there needs some editing. Also, a useful thread about executing OOo macros is at http://www.oooforum.org/forum/viewtopic.phtml?t=2619. Here’s the code to … Continue reading

Posted in Perl, System Administration, Visual Basic for Applications | Tagged , | Leave a comment