On Sunday 11 November 2007 01:41, Chris Arnold wrote: > I have a bunch of html files that i need to do a couple of things to: > 1.remove the html and head tags and replace them with other code
perl -p -i -e 's/oldtext/newtext/' *.html > 2.rename the file to .php mmv "*.html" "#1.php" (you might have to install package mmv first) CU -- Stefan Hundhammer <[EMAIL PROTECTED]> Penguin by conviction. YaST2 Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Nürnberg, Germany -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]