From owner-freebsd-questions Wed Jan 10 5:36:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from plab.ku.dk (plab.ku.dk [130.225.105.65]) by hub.freebsd.org (Postfix) with ESMTP id A2DAE37B404 for ; Wed, 10 Jan 2001 05:36:40 -0800 (PST) Received: (from root@localhost) by plab.ku.dk (8.11.0/8.9.3) id f0ADaY652042 for freebsd-questions@freebsd.org.AVP; Wed, 10 Jan 2001 14:36:34 +0100 (CET) (envelope-from postmaster@plab.ku.dk) Received: from raven.plab.ku.dk (raven.plab.ku.dk [130.225.105.67]) by plab.ku.dk (8.11.0/8.9.3) with ESMTP id f0ADaXb52034 for ; Wed, 10 Jan 2001 14:36:34 +0100 (CET) (envelope-from postmaster@plab.ku.dk) In-Reply-To: Tim Ayers's message of "09 Jan 2001 15:15:32 -0600" Subject: Re: A simple shell question, How do i rename multiple files? Content-Transfer-Encoding: 8bit References: <003101c07a95$b24117a0$46010a0a@sysadmininc.com> To: freebsd-questions@freebsd.org From: Dmitry Karasik X-Comment-To: Tim Ayers Content-Type: text/plain; charset="koi8-r" Lines: 18 Mime-Version: 1.0 Date: 10 Jan 2001 14:35:01 +0100 X-Mailer: Mail::Mailer[v1.18] Net::SMTP[v2.13] Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Tim! On 09 Jan 01 at 15:15, "Tim" (Tim Ayers) wrote: Tim> This is a surprisingly hard thing to do in UNIX. I don't think Tim> there's a way to do it with 'mv'. Here's how to do it with a Perl Tim> one-liner . There's a good tool pfind ( dunno if it's in ports); it's invocation will be like pfind . 's/xxx$/yyy/' -- Sincerely, Dmitry --- www.karasik.eu.org --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message