I would like to rename all of my files of my USB device randomly. Indeed, in my car, my tuner has not the random function.
I think I can do it with PHP ... but I'm pretty sure it is possible to do something shorter in shell script, right?
An idea?
|
I would like to rename all of my files of my USB device randomly. Indeed, in my car, my tuner has not the random function. I think I can do it with PHP ... but I'm pretty sure it is possible to do something shorter in shell script, right? An idea? |
|||
|
|
|
Assuming that you are running Linux, that you want to randomly order all files in the current directory and that no file name contains a newline:
The |
|||
|
|
You can add a random number of equal width as prefix, that's what I'm doing to randomize my audio files:
|
|||||||||
|