Do: rename -v . If it outputs:
Usage: rename [-v] [-n] [-f] perlexpr [filenames]
This check is related to the fact that there are at least two different renaming tools with very different functions. And for the solution that I have, it needs a rename that perlexpr handles.
Then you can:
rename 's/^(\d+)/5000000+$1/e' *.jpg
user80168
source share