From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 19:06:00 2003 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 3536216A4BF for ; Wed, 3 Sep 2003 19:06:00 -0700 (PDT) Received: from plewe.is.tsukuba.ac.jp (plewe.is.tsukuba.ac.jp [130.158.81.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id B973543FDF for ; Wed, 3 Sep 2003 19:05:58 -0700 (PDT) (envelope-from till@plewe.is.tsukuba.ac.jp) Received: from plewe.is.tsukuba.ac.jp (localhost [127.0.0.1]) h8426SCh055252; Thu, 4 Sep 2003 11:06:28 +0900 (JST) (envelope-from till@plewe.is.tsukuba.ac.jp) Received: (from till@localhost) by plewe.is.tsukuba.ac.jp (8.12.9/8.12.9/Submit) id h8426SYg055251; Thu, 4 Sep 2003 11:06:28 +0900 (JST) Date: Thu, 4 Sep 2003 11:06:28 +0900 From: Till Plewe To: Jonas Message-ID: <20030904020628.GE50130@plewe.is.tsukuba.ac.jp> References: <024201c37283$60b7b400$0800a8c0@master> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <024201c37283$60b7b400$0800a8c0@master> User-Agent: Mutt/1.5.4i-ja.1 cc: freebsd-questions@freebsd.org Subject: Re: How do I change the extensions on a slew of files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: till@score.is.tsukuba.ac.jp List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2003 02:06:00 -0000 On Wed, Sep 03, 2003 at 06:25:07PM -0700, Jonas wrote: > > Hello Know-It-Alls, > > If I have a directory with a whole slew of files with the same file > extension, for example: > > 1-1-1.inc > 1-1-2.inc > 1-1-3.inc > etc. > > What command can I use to change the file extension - but keep the file > name the same - in one swell swoop? The equivalent command in Windows > would be: > > C:\>ren *.inc *.htm > The shortest answer is probably: portinstall mmv; mmv "*.inc" =1.htm - Till