[wplug] changing extensions?

Eric esw148 at psu.edu
Tue Mar 27 00:17:36 EST 2007


Here's a little bash script that should work if they're all in the same 
directory.

    #!/bin/bash
   
    cd /directory/where/htm/files/are/
   
    for i in `ls *.htm`;
    do
        mv $i $i"l"
    done;

Eric



Zach wrote:
> Evening,
>
> I have many files (thousands) which end in .htm and I would like
> changed to .html (mainly for aesthetic purposes I prefer this) is
> there a nice Linux automated way I can do this from command line?
>
> Zach
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
>



More information about the wplug mailing list