Re: filename prefixes while transfering images from memory cards



kamaraju kusumanchi wrote:


Adding a prefix to all the files in a directory is as easy as

for i in *; do mv $i prefix$i; done

(tested under bash). So one approach is to copy the files from the
memory card to a temporary directory and run the above command.

More such goodies can be learned by reading "The Advanced Bash-Scripting
Guide" (apt-get install abs-guide).

Does that help solve your problem?


raju


I am already quite familiar with this method. However, if I have large
number of images in my memory card, it is much more convenient to see
the images in a browser, select the ones belong to a specific group, and
copy them over to the harddisk with a preset file format, e.g.
yyyymmdd_groupnamestring_nnn.jpg, where nnn is automatically fixed by
the application (gtkam and digikam do this, IIRC).

To get the same effect with a bash script, I need to first get the files
of images I want to save as one group (which may be nonsequenatial in
the memory card), then get their basenames and then copy them over with
the newly constructed names. The first step is the most cumbersome. With
a GUI browser, it is becomes sooo easy.

So, to put it in very approximate terms, I am enquiring if my memory
card maybe seen as a camera with an application in the same way as gtkam
sees a camera through the USB port.

->HS


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: OT (maybe) camera question
    ... encouraged them to take the disposable camera. ... the "roll" (depending on which size memory card I am using). ... taking some extremely HIGH resolution images by taking a bunch of smaller ... BTW the chance of getting a virus into your camera ...
    (rec.arts.disney.parks)
  • =?windows-1252?Q?www=2Eelectronics=2Dmac=2Dsony=2Ecom_Panasonic_Lumix_DMC=2DFZ1?= =?windows-
    ... Leica DC Vario-Elmarit 12x zoom lens combines with 4x digital ... Store images on Secure Digital memory card (8 MB SD card ... Recording Format: Still Image: JPEG(Design rule for Camera File ...
    (alt.tv.tech.hdtv)
  • Re: filename prefixes while transfering images from memory cards
    ... download images to the hard disk, we can specify the destination folder ... memory card instead of from a camera directly? ... So one approach is to copy the files from the memory card to a temporary directory and run the above command. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Lost and Found.
    ... main police station in Eastbourne. ... the images on the memory card from which it was obvious that it had ... There were a few self images on the ... camera may contain more personal data and that he should not return ...
    (uk.legal)
  • Re: Lost and Found.
    ... main police station in Eastbourne. ... the images on the memory card from which it was obvious that it had ... There were a few self images on the ... camera may contain more personal data and that he should not return ...
    (uk.legal)