I have a directory with a bunch of files with names like:
001234.jpg 001235.jpg 004729342.jpg
I want to remove the leading zeros from all file
Maybe not the most elegant but it will work.
for i in 0* do mv "${i}" "`expr "${i}" : '0*\(.*\)'`" done