Find the answer to your Linux question:
Results 1 to 3 of 3
I have a script to quickly import pics off my camera. The pictures are stored on my camera in the following format: DSCF0001.jpg DSCF0002.jpg etc. Now, what if, in the ...
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    3

    manipulating file names

    I have a script to quickly import pics off my camera. The pictures are stored on my camera in the following format:
    DSCF0001.jpg
    DSCF0002.jpg
    etc.
    Now, what if, in the morning I go out and take some pictures, come home, download them, go out and take more pictures, then come home to download them. Well, on the camera it starts back at DSCF0001.jpg. This is bad because it will overwrite the picture I took this morning. So here is the quesion, how could I check to see if the file exists, and if it does, rename the to-be-imported picture to continue where the other pictures left off? IE the last picture I took this morning is DSCF0023.jpg. How do I make the script start copying at DSCF0024.jpg?

  2. #2
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    chocolatetoothpaste, did you ever get a working solution? do you still need one?

  3. #3
    Just Joined!
    Join Date
    Mar 2006
    Posts
    3
    Yeah, I got one. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •