Re: filename prefixes while transfering images from memory cards
- From: "H.S." <hs.samix@xxxxxxxxx>
- Date: Tue, 04 Apr 2006 22:11:00 -0400
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
- Follow-Ups:
- Re: filename prefixes while transfering images from memory cards
- From: Justin Guerin
- Re: filename prefixes while transfering images from memory cards
- From: Sumo Wrestler (or just ate too much)
- Re: filename prefixes while transfering images from memory cards
- References:
- filename prefixes while transfering images from memory cards
- From: H.S.
- Re: filename prefixes while transfering images from memory cards
- From: kamaraju kusumanchi
- filename prefixes while transfering images from memory cards
- Prev by Date: Re: kudos to authors of kompose
- Next by Date: Re: filename prefixes while transfering images from memory cards
- Previous by thread: Re: filename prefixes while transfering images from memory cards
- Next by thread: Re: filename prefixes while transfering images from memory cards
- Index(es):
Relevant Pages
|