Date: 09 Jan 2001 22:04:49 +0100 From: Norbert Koch <nk@LF.net> To: freebsd-questions@freebsd.org Subject: Re: A simple shell question, How do i rename multiple files? Message-ID: <vzlmskh1xq.fsf@lamia.LF.net> In-Reply-To: <20010109160146.A11647@cae88-102-101.sc.rr.com> References: <003101c07a95$b24117a0$46010a0a@sysadmininc.com> <20010109155734.A11544@cae88-102-101.sc.rr.com> <20010109160146.A11647@cae88-102-101.sc.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Donald J . Maddox" <dmaddox@sc.rr.com> writes: > On Tue, Jan 09, 2001 at 03:57:34PM -0500, Donald J . Maddox wrote: >> #!/bin/sh >> for i in * > ^ Obviously, this should be '*.xxx' :/ >> do >> move $i ${i%.xxx} >> done s/move/mv norbert. 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?vzlmskh1xq.fsf>