copy random images

on

copy some random images to a directory:

ls *.jpg | sort -R | head -n 13 | xargs -i cp {} /home/knilluz/test.01/

and then have these images renamed to 1.jpg, 2.jpg etc…

i=1; for f in *.jpg; do mv ${f} ${i}.jpg; let i=i+1; done