[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Reply to: