I need to rename approx. 70,000 files. For example:
From sb_606_HBO_DPM_0089000
to sb_606_dpm_0089000
etc.
The number range goes from 0089000
to 0163022
. It's only the first part of the name that needs to change. all the files are in a single directory, and are numbered sequentially (an image sequence). The numbers must remain unchanged.
When I try this in bash it grizzles at me that the 'Argument list is too long'.
Edit:
I first tried renaming a single file with mv
:
mv sb_606_HBO_DPM_0089000.dpx sb_606_dpm_0089000.dpx
Then I tried renaming a range (I learned here last week how to move a load of files, so I thought the same syntax might work for renaming the files...). I think I tried the following (or something like it):
mv sb_606_HBO_DPM_0{089000..163023}.dpx sb_606_dpm_0{089000..163023}.dpx