added shuffle.sh
This commit is contained in:
parent
f1dbbd6029
commit
6c4ce4b4c9
|
@ -0,0 +1,16 @@
|
|||
extension=""
|
||||
|
||||
echo "Type an extension to shuffle"
|
||||
read extension
|
||||
|
||||
to_shuffle=$(find . -name "*.${extension}");
|
||||
|
||||
mkdir shuffled;
|
||||
|
||||
for file in $to_shuffle; do
|
||||
rand=$RANDOM
|
||||
mv ${file} shuffled/$rand.${extension}
|
||||
done
|
||||
|
||||
echo "Done"
|
||||
|
Loading…
Reference in New Issue