From owner-freebsd-questions@FreeBSD.ORG Tue Jan 5 20:16:16 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 3BBF6106566C for ; Tue, 5 Jan 2010 20:16:16 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (beta.hcst.com [192.52.183.241]) by mx1.freebsd.org (Postfix) with ESMTP id D73508FC12 for ; Tue, 5 Jan 2010 20:16:15 +0000 (UTC) Received: from beta.hcst.com (localhost [127.0.0.1]) by beta.hcst.com (8.13.8/8.13.8/Debian-3) with ESMTP id o05KGE2i022305 for ; Tue, 5 Jan 2010 15:16:14 -0500 Received: (from vogelke@localhost) by beta.hcst.com (8.13.8/8.13.8/Submit) id o05KGDMD022298; Tue, 5 Jan 2010 15:16:13 -0500 Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id 78FE3BEEA; Tue, 5 Jan 2010 15:15:07 -0500 (EST) To: freebsd-questions@freebsd.org In-reply-to: <20100104155209.rxtj6y2vk0w8o0g8@www.envieweb.net> (nvidican@envieweb.net) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 References: <1262624558.9656.16.camel@dasp-laptop> <20100104145854.gdhdk5mb288oswgw@www.envieweb.net> <1262637277.12080.9.camel@dasp-laptop> <20100104155209.rxtj6y2vk0w8o0g8@www.envieweb.net> Message-Id: <20100105201507.78FE3BEEA@kev.msw.wpafb.af.mil> Date: Tue, 5 Jan 2010 15:15:07 -0500 (EST) From: vogelke+unix@pobox.com (Karl Vogel) Subject: Re: Rename pictures in the command-line interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+unix@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2010 20:16:16 -0000 >> On Mon, 04 Jan 2010 15:52:09 -0500, >> Nathan Vidican nathan@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/rename.txt I put up most of the scripts in my ~/bin directory for examination here, if anyone's interested: http://www.pobox.com/~vogelke/src/toolbox/ The descriptions are NOT complete, but they're getting there. -- Karl Vogel I don't speak for the USAF or my company The tides are a fight between the Earth and moon. All water tends towards the moon, because there is no water in the moon, and nature abhors a vacuum. I forget where the sun joins in this fight. --submitted to science and health teachers, Jr High thru college