Date: Wed, 19 May 2004 11:54:15 +0200 From: Ruben de Groot <mail25@bzerk.org> To: Drew Tomlinson <drew@mykitchentable.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: How To Copy A Group of Files To Different Name? Message-ID: <20040519095415.GA69962@ei.bzerk.org> In-Reply-To: <20040518175629.C80176@wonkity.com> References: <200405181725.i4IHPXtT016748@beast.csl.sri.com> <40AA4977.9020304@mykitchentable.net> <20040518175629.C80176@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040519095415.GA69962>
