Re: Global File Change

From: Date: Wed, 02 May 2001 14:32:09 +0000
Subject: Re: Global File Change
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-664@lists.php.net to get a copy of this message
On 2001.05.02 07:43 jml@spectrum.net wrote: >Thanks for providing Smarty, I tried all the other Template >Engines, and Smarty makes the best sense to me, and has >increased my productivity many times over. > >I have decided with the new version to change all my *.tpl >files to *.htm files to make it easier for the designer's. >I'm know I could spend some time researching this, but I was >hoping someone could just provide an answer... I need to do >2 things Under Red Hat 7.0 > >1) How can I change all occurances of .tpl to .htm in my >scripts? perl -e's/\.tbl/\.htm/' -pi'*.bak' *.tpl > >2) How can I easily rename all *.tpl files to *.htm, would >'cp *.tpl *.htm' work? > util-linux shipped with redhat 7.0 contains a rename program that takes the old-extension, the new-extension and list of files as arguments, e.g 'rename tpl htm *.tpl' why .htm on a un*x box though ? rich -- +-----------------------------------------------------------------+ | Richard Palmer <richard.palmer@theplanet.net> | | This sentance every third, but it still comprehensible. | +-----------------------------------------------------------------+

« previous php.smarty.general (#664) next »