From owner-freebsd-questions@FreeBSD.ORG Mon Jan 4 21:14:21 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61A75106568F for ; Mon, 4 Jan 2010 21:14:21 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id 387BB8FC14 for ; Mon, 4 Jan 2010 21:14:20 +0000 (UTC) Received: (qmail 12140 invoked from network); 4 Jan 2010 21:14:20 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Jan 2010 21:14:20 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 7FF4450825; Mon, 4 Jan 2010 16:14:19 -0500 (EST) From: Lowell Gilbert To: =?iso-8859-1?Q?D=E1rio?= "P." References: <1262624558.9656.16.camel@dasp-laptop> <20100104191610.5054255f.freebsd@edvax.de> <1262632437.11494.18.camel@dasp-laptop> <20100104205911.24b5296c.freebsd@edvax.de> <1262638631.12080.18.camel@dasp-laptop> Date: Mon, 04 Jan 2010 16:14:18 -0500 In-Reply-To: <1262638631.12080.18.camel@dasp-laptop> (=?iso-8859-1?Q?=22D?= =?iso-8859-1?Q?=E1rio?= \"P.\""'s message of "Mon, 04 Jan 2010 21:57:11 +0100") Message-ID: <44hbr1374l.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Rename pictures in the command-line interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2010 21:14:21 -0000 D=E1rio "P." writes: > Seg, 2010-01-04 =E0s 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 process. > > I think I gonna use the Nathan's Perl script, it did the job without any > problem (at least for now :D). 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. --=20 Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/