Re: Rename pictures in the command-line interface

2010-01-05 Thread Karl Vogel
>> On Mon, 04 Jan 2010 15:52:09 -0500, >> Nathan Vidican nat...@vidican.com said: N> Personally I find things like this a LOT easier to do in Perl... Ditto. Here's a more generic version which uses regular expressions to rename files: http://www.pobox.com/~vogelke/src/toolbox/perl/re

Re: Rename pictures in the command-line interface

2010-01-05 Thread P.
Ter, 2010-01-05 às 15:35 +0100, herbert langhans escreveu: > Hi Dario, > another way is to use batren - its a shell script and should work out of the > box on FreeBSD: > http://batren.sourceforge.net/cgi-bin/blis.cgi/Home > > Cheers > herb langhans Thank you Herbert, sounds a interesting tool. I

Re: Rename pictures in the command-line interface

2010-01-04 Thread P.
Seg, 2010-01-04 às 16:14 -0500, Lowell Gilbert escreveu: > You might want to look at the "jhead" port. > > It uses the date the picture was taken for the new name, so it's both > stable (i.e., if you run it again you get the same results) and sorts > into proper order. Well, the problem is that s

Re: Rename pictures in the command-line interface

2010-01-04 Thread Lowell Gilbert
Dário "P." writes: > Seg, 2010-01-04 às 20:59 +0100, Polytropon escreveu: > >> As you see: I have a reason to believe that I should better >> write a new script that takes such things into mind and maybe >> offer reverse renumbering, overwrite protection and a better >> selection which files (ins

Re: Rename pictures in the command-line interface

2010-01-04 Thread nvidican
Quoting "Dário \"P." : Hello, I have one directory with some pictures that I wanna rename (I use csh, don't know if that matters). For exemple, I have: b.jpg bs.jpg bsd.jpg And I wanna change to: bsd1.jpg bsd2.jpg bsd3.jpg I really appreciate if someone can help me. :) Regards, _

Re: Rename pictures in the command-line interface

2010-01-04 Thread P.
Seg, 2010-01-04 às 20:59 +0100, Polytropon escreveu: > As you see: I have a reason to believe that I should better > write a new script that takes such things into mind and maybe > offer reverse renumbering, overwrite protection and a better > selection which files (instead of hardcoded *) to proc

Re: Rename pictures in the command-line interface

2010-01-04 Thread nvidican
No problem. You might also consider extending it to support '.jpeg' as well as '.jpg', or even alter to work recursively through sub-directories. Like I said though, it's more or less a starting point. It will continue to extend beyond the current number each time it's run too - so it shoul

Re: Rename pictures in the command-line interface

2010-01-04 Thread Polytropon
On Mon, 04 Jan 2010 20:13:57 +0100, Dário "P." wrote: > The sorting order is not a big problem for me, at least for now. I'm > doing the renaming in one machine with GUI then I upload the pictures to > another machine. The only reason that I need this, is because sometimes > I delete one picture

Re: Rename pictures in the command-line interface

2010-01-04 Thread P.
Seg, 2010-01-04 às 19:16 +0100, Polytropon escreveu: > Keep in mind that the script follows the csh's sorting > order to resolve *, which usually is lexicographical > order. The sorting order is not a big problem for me, at least for now. I'm doing the renaming in one machine with GUI then I uplo

Re: Rename pictures in the command-line interface

2010-01-04 Thread Polytropon
On Mon, 04 Jan 2010 18:02:38 +0100, Dário "P." wrote: > Hello, > > I have one directory with some pictures that I wanna rename (I use csh, > don't know if that matters). > > For exemple, I have: > > b.jpg > bs.jpg > bsd.jpg > > And I wanna change to: > > bsd1.jpg > bsd2.jpg > bsd3.jpg > > I

Rename pictures in the command-line interface

2010-01-04 Thread P.
Hello, I have one directory with some pictures that I wanna rename (I use csh, don't know if that matters). For exemple, I have: b.jpg bs.jpg bsd.jpg And I wanna change to: bsd1.jpg bsd2.jpg bsd3.jpg I really appreciate if someone can help me. :) Regards, ___