Forgot Password
Pentax Camera Forums Home

Show Printable Version Search this Thread
06-29-2012, 02:55 PM   #16
Site Supporter
SpecialK's Avatar

Join Date: Dec 2006
Location: So California
Photos: Gallery
Posts: 14,904
Not quite an answer for your problem, but for renaming files in general, this works nicely. I use it to change IMGP into yymmdd, and some other things.

Flexible Renamer

06-30-2012, 08:43 AM   #17
Loyal Site Supporter

Join Date: Sep 2006
Location: Bronx NY
Photos: Gallery | Albums
Posts: 5,611
Original Poster
QuoteOriginally posted by Anvh Quote
Seems like you're having more problems then the file numbering.

Btw it does change the way the file numbering works, you need to try it but it might maybe be able to reset the file numbering again with the help of that setting.

Actually i see that sensorbeed already confirmed that it works so you opened your big mouth too soon.
If you would actually read the posts (and read the manual) you would realize that what senor beef suggested IS NOT in the manual. I don't want to change how the file numbering works, I want to change the sequence of the numbering.

NaCl(if people would read what other people have posted, things would be simpler)H2O
07-05-2012, 02:37 PM   #18
Forum Member

Join Date: Feb 2011
Location: Brisbane
Posts: 55
All the relevant things have already been said, and because I have also recently had to mess with sequencing (also my brain seems to be refusing to comprehend exactly what you a asking) so I will just brainfart a bit.
body 1: filenames 0006nnnn.DNG (because it's up to around 68000 actuations)
body 2: filenames _A00nnnn.DNG (because it's up to around 2500 actuations and uses the Adobe colorspace)
The former camera went berserk with filenames a while back, incrementing them by several thousand after a weird power issue. So I tend to realign that sequence with the shutter actuations if in doubt. I guess I would do the samewith the second body too, just with the correspondingly different filename prefix.
.pp3's are a RawTherapee metadata sidecar file...because I only realised the sequencing was shot AFTER processing ~1500 images.

ls -l | awk 'NR!=1 && !/^d/ {print $NF}' | while read name
if [ "$ext" = "pp3" ]; then
if [ $name != "${origname}.${ext}" ]; then
# echo rm $name
rm --verbose --force $name
# echo mv ${name} ${newname}"."${ext}
mv --verbose ${name} ${newname}"."${ext}
shuttercount=$(exiftool -s -s -s -ShutterCount $name)
countname=$(printf "%08d" ${shuttercount})
# echo mv ${name} ${newname}
mv --verbose ${name} ${newname}
PS: wow, could the board smash code block whitespacing any more? far out.
07-05-2012, 02:43 PM   #19
Site Supporter
Vylen's Avatar

Join Date: Dec 2008
Location: Sydney, Australia
Photos: Gallery
Posts: 1,250
Op is trying to alter the number sequences generated by the camera... a shell script after the fact isn't going to help


  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
camera, cards, dslr, file, k-5, k-5 ii, k-5 iis, k20, k5, pentax k-5, sd
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Curious file numbering hiccup? NaClH2O Pentax K-5 2 06-27-2012 03:58 AM
K200 file numbering system. G-CPTN Troubleshooting and Beginner Help 11 02-09-2012 10:58 AM
Six digit file numbering yusuf Pentax DSLR Discussion 17 06-25-2011 12:30 AM
Picture Numbering Optio 750W bringbackfilm Troubleshooting and Beginner Help 3 12-13-2010 03:10 AM
KX File numbering mess up GaryH Pentax DSLR Discussion 10 09-10-2010 07:04 AM

All times are GMT -7. The time now is 05:48 AM. | See also:, part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]