Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!violet.berkeley.edu!pete From: pete@violet.berkeley.edu (Pete Goodeve) Newsgroups: comp.sys.amiga.tech Subject: Re: PIPEs Message-ID: <1990Nov13.084245.3495@agate.berkeley.edu> Date: 13 Nov 90 08:42:45 GMT References: <1990Nov7.235254.13959@opusc.csd.scarolina.edu> <7025@sugar.hackercorp.com> <1990Nov12.025436.3189@opusc.csd.scarolina.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 40 In <1990Nov12.025436.3189@opusc.csd.scarolina.edu> (12 Nov), Ken Yarnall (yarnall@opusc.csd.scarolina.edu) writes: > In article <7025@sugar.hackercorp.com> Peter da Silva writes: > +OK, quick. How do you rename all whatever.c-or-h files to old.whatever.c-or-h > +with wildcards instead of slices? > > Well, this is as quick as I can get :-) > > > First, I used Arp's copy command. [....] > > copy #?.(c|h) old.#? > > Works like a champ. [....] > > Admittedly, one can construct convoluted examples that won't be doable this > way. Come up with a useful one, though, and I'll be impressed... > Well how about this recent one of mine (for which I used my Mat script discussed elsewhere...)? I had been calling my 'IP:' module 'IPHandler' (.c, .o, .lnk etc...) and decided I would prefer 'IP-Handler'. Done on all the files in one step by: REN IP^Hand#? ^0-^1 (Had to edit the makefile and link file by hand, of course, but that was easy.) Not an isolated instance, either. The IP-device fan-out program I'm working on, I tentatively called 'Itee', without liking the name much (a 'tee' is only two way). Now someone has suggested 'mani' (for 'manifold') so I'm about to do: REN itee^#? mani^1 Useful enough? (:-)) -- Pete --