Date: Sun, 07 Mar 1999 01:48:17 -0500 From: James Kalmadge <kalmadg@banet.net> To: questions@freebsd.org Subject: Re: omething simple (sorry) Message-ID: <36E22131.2781E494@banet.net> References: <199903041306.NAA06501@primrose.csv.warwick.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36E22131.2781E494>
