[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: converting .php files to .dhtml



On Tuesday 19 July 2005 15:18, Ankush Grover wrote:
>
> I want to convert all the .php files under the main directory and
> under its subdirectories to .dhtml.
>

In the main directory, try command line

for i in `find -name "*.php"`; do  name=${i%.php}; mv $name.php $name.dhtml; 
done

It works for me with bash version 3.00.16(1)-release

Cheers,
Stefan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]