From owner-freebsd-questions@FreeBSD.ORG Tue May 18 10:21:34 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 B2FBA16A4CE for ; Tue, 18 May 2004 10:21:34 -0700 (PDT) Received: from relay02.roc.ny.frontiernet.net (relay02.roc.ny.frontiernet.net [66.133.131.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5314B43D31 for ; Tue, 18 May 2004 10:21:33 -0700 (PDT) (envelope-from drew@mykitchentable.net) Received: (qmail 31699 invoked from network); 18 May 2004 17:21:32 -0000 Received: from 67-51-156-100.dsl1.elk.ca.frontiernet.net (HELO blacklamb.mykitchentable.net) ([67.51.156.100]) (envelope-sender )SMTP for ; 18 May 2004 17:21:32 -0000 Received: from [165.107.42.233] (unknown [165.107.42.233]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 026C53BF39D for ; Tue, 18 May 2004 10:21:30 -0700 (PDT) Message-ID: <40AA4621.3000605@mykitchentable.net> Date: Tue, 18 May 2004 10:21:37 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Tue, 18 May 2004 17:21:34 -0000 How can I copy a group of files to a different name. I want to copy all files starting with 'bacula*' to 'bacula*.old'. So I have these four files: 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 I want to have copies of these files with '.old' appended to their names. I've tried 'cp -pv bac* bac*.old' but cp complains. Because it's only 4 files, I'll do each one independently but I'd like to know how to do this "right" for future reference. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com