From owner-freebsd-questions@FreeBSD.ORG Tue May 18 20:30:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39E1716A4CE for ; Tue, 18 May 2004 20:30:27 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6B0343D1D for ; Tue, 18 May 2004 20:30:26 -0700 (PDT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BQHme-0001Hf-00 for freebsd-questions@freebsd.org; Wed, 19 May 2004 05:30:20 +0200 Received: from [217.1.218.132] (helo=oliverfuchs.ath.cx) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1BQHmc-0006AV-00 for freebsd-questions@freebsd.org; Wed, 19 May 2004 05:30:20 +0200 Received: from oliverfuchs.ath.cx (localhost [127.0.0.1]) i4J3UDsB004249verify=FAIL) for ; Wed, 19 May 2004 05:30:14 +0200 Received: (from oliverfuchs1@localhost) by oliverfuchs.ath.cx (8.12.3/8.12.3/Debian-6.6) id i4J3Aou0003931 for freebsd-questions@freebsd.org; Wed, 19 May 2004 05:10:50 +0200 Date: Wed, 19 May 2004 05:10:50 +0200 From: Oliver Fuchs To: FreeBSD Questions Message-ID: <20040519031050.GA3306@oliverfuchs.ath.cx> Mail-Followup-To: FreeBSD Questions References: <40AA4621.3000605@mykitchentable.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <40AA4621.3000605@mykitchentable.net> User-Agent: Mutt/1.4.2i Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by oliverfuchs.ath.cx id i4J3UDsB004249 X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: Re: How To Copy A Group of Files To Different Name? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2004 03:30:27 -0000 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 ...