Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2004 05:10:50 +0200
From:      Oliver Fuchs <oliverfuchs@onlinehome.de>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: How To Copy A Group of Files To Different Name?
Message-ID:  <20040519031050.GA3306@oliverfuchs.ath.cx>
In-Reply-To: <40AA4621.3000605@mykitchentable.net>
References:  <40AA4621.3000605@mykitchentable.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 18 May 2004, Drew Tomlinson wrote:

> How can I copy a group of files to a different name.  I want to copy al=
l=20
> files starting with 'bacula*' to 'bacula*.old'.  So I have these four f=
iles:
>=20
> blacklamb# ll bac*
> -r--r--r--  1 root  wheel   949 Apr 22 09:13 bacula-barcodes
> -rw-r-----  1 root  wheel  5792 May 17 16:52 bacula-dir.conf
> -rw-r-----  1 root  wheel   763 Apr 22 09:13 bacula-fd.conf
> -rw-r-----  1 root  wheel  1909 May 17 16:31 bacula-sd.conf
>=20
> I want to have copies of these files with '.old' appended to their=20
> names.  I've tried 'cp -pv bac* bac*.old' but cp complains.  Because=20
> it's only 4 files, I'll do each one independently but I'd like to know=20
> how to do this "right" for future reference.
>=20
> Thanks,
>=20
> Drew

Take a look at Krename.

Oliver
--=20
heit bin e ned munta wuan
w=E4u ma r unsa bendlua
schdeeblim is ...



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