Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 21:58:26 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        "mail_box_of_mine@yahoo.com" <mail_box_of_mine@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: ? change *.cpp to *.c
Message-ID:  <20010607215826.A27262@dan.emsphone.com>
In-Reply-To: <20010607194434.EEC8.MAIL_BOX_OF_MINE@yahoo.com>
References:  <20010607194434.EEC8.MAIL_BOX_OF_MINE@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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