From owner-freebsd-questions@FreeBSD.ORG Mon Jan 26 03:03:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20EA616A4CE for ; Mon, 26 Jan 2004 03:03:29 -0800 (PST) Received: from mailhost.tue.nl (mailhost.tue.nl [131.155.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5236143D1D for ; Mon, 26 Jan 2004 03:03:27 -0800 (PST) (envelope-from a.kotsopoulos@tue.nl) Received: by mailhost.tue.nl (Postfix, from userid 40) id 9216B14BC9F; Mon, 26 Jan 2004 12:03:26 +0100 (CET) Received: from tue.nl (EPE-PC18.ele.tue.nl [131.155.183.216]) by mailhost.tue.nl (Postfix) with ESMTP id 2B77714BC8E for ; Mon, 26 Jan 2004 12:03:24 +0100 (CET) Message-ID: <4014F3FB.1030204@tue.nl> Date: Mon, 26 Jan 2004 12:03:23 +0100 From: Andrew Kotsopoulos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on mailhost.tue.nl X-Spam-DCC: COLLEGEOFNEWCALEDONIA: mailhost.tue.nl 1189; Body=1 Fuz1=1 Fuz2=1 X-Spam-Status: No, hits=0.0 required=6.3 tests=none autolearn=no version=2.61 X-Spam-Level: Subject: "rename" shell command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: a.kotsopoulos@tue.nl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2004 11:03:29 -0000 Dear FreeBSD I'm looking for the "rename" shell command for the macosx version of bsd. In redhat and possibly other linux distributions the command renames files and supports wildcards and multiple file conversions, as you most likely know. To be more precise here is the man page: ----- NAME rename - Rename files SYNOPSIS rename from to file... DESCRIPTION rename will rename the specified files by replacing the first occurrence of from in their name by to. For example, given the files foo1, ..., foo9, foo10, ..., foo278, the commands rename foo foo0 foo? rename foo foo0 foo?? will turn them into foo001, ..., foo009, foo010, ..., foo278. And rename .htm .html *.htm will fix the extension of your html files. SEE ALSO mv(1) ---- If it exisits within the bsd distribution then where is it? If not, can you tell me why it does not exist? I suppose I could simply compile it from source, if I can find some source? Many thanks Andrew -- O O D r A n d r e w K o t s o p o u l o s O Dept of Electrical Engineering (Group EPE) \___/ Technical University of Eindhoven Post box 513 phone: +31 40 247 3566 5600MB Eindhoven fax: +31 40 243 4364 The Netherlands secratary: +31 40 247 2310