quickie

Mike Hornung mike at boobaz.net
Tue May 23 01:44:04 PDT 2000


Use GNU find:

find . -maxdepth 1 -type f -exec mv {} {}.extension \;

---------------------------
-=<(| mike at boobaz.net |)>=-

On Mon, 22 May 2000, R. David Whitlock wrote:


|ok, here's a quickie:

|

|how would you rename all files in a directory to the same name plus an

|extension on the command line?

|

|for example, if I have 12 files named "1" "2" "3", etc, how to turn them

|all into "1.png" "2.png" "3.png", etc?

|

|-david

|

|

|




More information about the Linux mailing list