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 <sh@suse.de> Penguin by conviction. YaST2 Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Nürnberg, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org