From owner-freebsd-questions Thu Jun 7 19:58:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id BEE0937B406 for ; Thu, 7 Jun 2001 19:58:29 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.3/8.11.3) id f582wQR04390; Thu, 7 Jun 2001 21:58:26 -0500 (CDT) (envelope-from dan) Date: Thu, 7 Jun 2001 21:58:26 -0500 From: Dan Nelson To: "mail_box_of_mine@yahoo.com" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ? change *.cpp to *.c Message-ID: <20010607215826.A27262@dan.emsphone.com> References: <20010607194434.EEC8.MAIL_BOX_OF_MINE@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010607194434.EEC8.MAIL_BOX_OF_MINE@yahoo.com> User-Agent: Mutt/1.3.19i X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jun 07), mail_box_of_mine@yahoo.com said: > hi, > I'm a Unix new learner. I want to change many ".cpp" files to > ".c" files. However, when I type "mv *.cpp *.c", it does not work. > However, in dos, "ren *.cpp *.c" works. Is there any easy way to do > this in Unix without write a shell program? Install the mmv port; then you can do mmv "*.cpp" "=1.c" -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message