[opensuse] Re: fake random sort
Le 27/11/2009 15:44, Randall R Schulz a écrit :
Write a random permutation of the input lines to standard output.
I don't think this could do my job, I don't want to shuffle a playlist bur to have the file name itself changed. Shame is Google give me a windows utility to do this :-( "A free batch renaming utility for changing prefixes, suffixes, naming pictures with numerical names, etc. Features random capability to randomize the order of the file names, such as to put pictures in random order instead of photoshoot order. " but I found a small batch that could with small change do what I need: here the original: echo "List of temporary files : " for i in 1 2 3 4 5 do FILE="/tmp/$(basename $0).$RANDOM.txt" echo $FILE # show file name
$FILE # create files done
what I need is read all the *.jpg files of a folder and rename them thanks jdd -- http://www.dodin.net http://valerie.dodin.org http://news.opensuse.org/2009/04/13/people-of-opensuse-jean-daniel-dodin/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Freitag, 27. November 2009 schrieb jdd-gmane:
[...] Shame is Google give me a windows utility to do this :-( [...]
Did you try krename? Gruß Jan -- He who has the gold makes the rules. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Jan Ritzerfeld
-
jdd-gmane