Skip to content

Instantly share code, notes, and snippets.

@eos87
Created September 18, 2009 04:12
Show Gist options
  • Save eos87/188870 to your computer and use it in GitHub Desktop.
Save eos87/188870 to your computer and use it in GitHub Desktop.
#Script sh para cambiar nombre por numeros masivamente
#!/bin/sh
for img in `ls *.jpg`
do
echo $img
nombre=$[$nombre+1]
mv $img $nombre.jpg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment