From owner-freebsd-questions Sat Mar 6 22:50:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from out1.ibm.net (out1.ibm.net [165.87.194.252]) by hub.freebsd.org (Postfix) with ESMTP id 7973514BE9 for ; Sat, 6 Mar 1999 22:50:12 -0800 (PST) (envelope-from kalmadg@banet.net) Received: from stegosaurus (slip129-37-122-100.mo.us.ibm.net [129.37.122.100]) by out1.ibm.net (8.8.5/8.6.9) with SMTP id GAA111750; Sun, 7 Mar 1999 06:49:53 GMT Message-ID: <36E22131.2781E494@banet.net> Date: Sun, 07 Mar 1999 01:48:17 -0500 From: James Kalmadge X-Mailer: Mozilla 3.04 (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: questions@freebsd.org Subject: Re: omething simple (sorry) References: <199903041306.NAA06501@primrose.csv.warwick.ac.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't know about mmv but 'basename' definitely won't work. How about: for file in *.txt do cp $file `echo $file | awk -F. '{print $1}'`.old done Put it in a script file if you want to re-use it later. Mr M P Searle wrote: > > > Hi All > > > > > > I have looked and I can't find how to move bulk files with wildcards > > > > in dos I would use copy *.txt *.old > > > > > > What do I do in FreeBSD to mv ? cp ? > > > > There's a utility 'mmv' in ports that does this kind of thing. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message