Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jan 2008 02:08:26 +0000
From:      Jim Bow <jimbow@darq.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: batch rename
Message-ID:  <4782DB1A.4050800@darq.net>
In-Reply-To: <aec9371b0801071603s459d3c11n3f80c407cb9ff872@mail.gmail.com>
References:  <2b98f2f70801042134x1af4f721s877677afde7151f5@mail.gmail.com> <aec9371b0801071603s459d3c11n3f80c407cb9ff872@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Jeff Laine wrote:

> My goal is to rename several files in such a way as to decapitalize starting
> letters in their names.
> The solution seems to be simple but I'm stuck. What should I use? awk/sed or
> write some shell-script?

I found myself at this point once too, and then I discovered 
/usr/ports/sysutils/rename.

Sure, its not as crazy as krename (it wont read any metadata), but it 
runs in a terminal, is written in C and supports extended regular 
expressions.


JimBow



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4782DB1A.4050800>