Re: Power Poster for Binaries
From: CWO4 Dave Mann (misterfixit_at_loveable.com)
Date: 07/25/05
- Next message: Jacob: "Re: Linux : Which one's best ?"
- Previous message: Julian Bradfield: "Re: Power Poster for Binaries"
- In reply to: Julian Bradfield: "Re: Power Poster for Binaries"
- Next in thread: Julian Bradfield: "Re: Power Poster for Binaries"
- Reply: Julian Bradfield: "Re: Power Poster for Binaries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 25 Jul 2005 11:14:34 -0500
Julian Bradfield wrote:
> In article <1263885.O3gqvrtDTQ@linux.user.and.happy>,
> CWO4 Dave Mann <misterfixit@loveable.com> wrote:
>
>>For example, There might be a picture on my camera device named
>>"dfg0001.jpg" taken today. I want to rename it and all the others to some
>>more descriptive name such as "Porsche 928 Work #1.jpg" and so on and have
>>the following folders which I include in my mouse click hilight be renamed
>>with ascending numbers. Windows does this natively, BTW, when selecting a
>>range of files in a folder and renaming one folder, each succeeding folder
>>is named the same with an incremented number as part of the file name.
>
> You mean "file" most of the time you say "folder", don't you?
>
>
> In a shell:
> cd wherever-your-camera-is-mounted
> i=1 ; for f in *.jpg ; do mv $f "Porsche 928 Work #$i.jpg" ; i=$[i+1] ;
> done
>
>
> A little basic shell programming goes a long way! If you practise it,
> things like that will just flow out of your fingers without thought.
OK, this is Officially Amazing to Me. I am preparing to get started on
shell programming. Somehow I just knew we could do this without all the
fol-de-rol of some programming language.
And I am assuming that the bit of shell code can be named and invoked by a
alias with values to be plugged in on the fly - pausing to wait for input
of the needed data? That would be too cool -- like writing a batch file
for DOS, sort of.
Also, yes I meant file vis a vis folder. Sorry about that.
Would you have a recommendation for a shell programming text which I might
check out from the Library?
Cheers,
Dave
- Next message: Jacob: "Re: Linux : Which one's best ?"
- Previous message: Julian Bradfield: "Re: Power Poster for Binaries"
- In reply to: Julian Bradfield: "Re: Power Poster for Binaries"
- Next in thread: Julian Bradfield: "Re: Power Poster for Binaries"
- Reply: Julian Bradfield: "Re: Power Poster for Binaries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|