or:
to just display what would be changed andCode:$ rename -n 's/\.txt$/\.html/' *.txt
to really do it.Code:rename -v 's/\.txt$/\.html/' *.txt
or:
to just display what would be changed andCode:$ rename -n 's/\.txt$/\.html/' *.txt
to really do it.Code:rename -v 's/\.txt$/\.html/' *.txt
and yet another way:
nice thing about rename is the -n parameter which allows you to preview what your command will do, without actually doing it.Code:rename 's/.txt$/.html/' *.txt
EDIT: oops bit late -- strange forums lag
getting better... unfortunately rename is not available for my AIX UNIX machine in office....
Bookmarks