12 Nov
2007
12 Nov
'07
10:39
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