From owner-freebsd-questions@FreeBSD.ORG Wed May 19 02:52:22 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 1EF1C16A4CF for ; Wed, 19 May 2004 02:52:22 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01A5B43D2F for ; Wed, 19 May 2004 02:52:21 -0700 (PDT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.10/8.12.10) with ESMTP id i4J9sFQc070051; Wed, 19 May 2004 11:54:15 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.10/8.12.10/Submit) id i4J9sFi2070050; Wed, 19 May 2004 11:54:15 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Wed, 19 May 2004 11:54:15 +0200 From: Ruben de Groot To: Drew Tomlinson Message-ID: <20040519095415.GA69962@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Drew Tomlinson , Mike Hogsett , FreeBSD Questions References: <200405181725.i4IHPXtT016748@beast.csl.sri.com> <40AA4977.9020304@mykitchentable.net> <20040518175629.C80176@wonkity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040518175629.C80176@wonkity.com> User-Agent: Mutt/1.4.2.1i cc: Drew Tomlinson cc: Mike Hogsett cc: FreeBSD Questions 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 09:52:22 -0000 > On Tue, 18 May 2004, Drew Tomlinson wrote: > > > OK, thanks. I'm using tcsh but I think I figure out how to do it > > following your example. So a "script" is the only way to do it in > > *nix? Being born and raised on MS-DOS, I'm accustomed to the "copy bac* > > bac*.old" syntax. On the command line (tcsh): > ls bac* bac1 bac2 bac3 > foreach file ( bac* ) foreach? cp -p $file $file.old foreach? end > ls bac* bac1 bac1.old bac2 bac2.old bac3 bac3.old cheers, Ruben