Re: Renaming multiple extensions-file on unix..
Hello Louie
Easiest is to use the tcsh and a foreach loop.
Thus
$ tcsh
> foreach var ( *.html )
foreach? mv $var:r ${var}.html
foreach? end
> exit
$
Comments:
First column is always the system prompt (changing from bash to tcsh).
Of course it is better to test it with 'echo $var' in first attempt.
$var:r shows $var without extension (tcsh !).
Christian
On Tue, 2003-05-27 at 08:54, Miranda, Joel Louie M wrote:
> Hello,
>
> I have this html pages and I just want to rename them all into *.php
> Anyone have any ideas? Doing this in just one command? Or Just a script?
>
>
> Thanks,
> Louie
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: