thanks jlinkels, but how do i use this code? I have created a file called ranren.sh and have tried running
Code:
lefty@1[photo_randomized]$ ./ranren.sh
mv: cannot stat `fname': No such file or directory
mv: cannot stat `fname': No such file or directory
mv: cannot stat `fname': No such file or directory
lefty@1[photo_randomized]$
As you can see, it won't accept "fname" as a file name. What should I change in the script? How would I cycle through each file name (160 total) and give it a random name? (preferably in a subfolder) Many of the files are photo_0001.jpg photo_0002.jpg but others have different names and need to be randomized as well.
thanks for any more help/advice!
p.s. I tried
Code:
ls | mv * $RANDOM.jpg
but it wouldn't move multiple files anywhere except to a directory