Article View: comp.sys.amiga.tech
Article #6558Re: PIPEs
From: Larry Phillips
Date: Sun, 11 Nov 1990 19:35
Date: Sun, 11 Nov 1990 19:35
27 lines
1362 bytes
1362 bytes
In <7025@sugar.hackercorp.com>, peter@sugar.hackercorp.com (Peter da Silva) writes:
>> +For things like "move", I'd rather go to slices:
>
>> + move {.*}.c \1.h
>
>In article <1990Nov7.235254.13959@opusc.csd.scarolina.edu> yarnall@opusc.csd.scarolina.edu (Ken Yarnall) writes:
>> Yeah, right. That is much clearer...:-)
>
>OK, quick. How do you rename all whatever.c-or-h files to old.whatever.c-or-h
>with wildcards instead of slices?
Well, it probably _shouldn't work, but I just tried it with a few patterns, and
found that this one works fine:
mv *.(c|h) old.*
That's using the ARP 'move' command.
-larry
--
The only things to survive a nuclear war will be cockroaches and IBM PCs.
+-----------------------------------------------------------------------+
| // Larry Phillips |
| \X/ lphillips@lpami.wimsey.bc.ca -or- uunet!van-bc!lpami!lphillips |
| COMPUSERVE: 76703,4322 -or- 76703.4322@compuserve.com |
+-----------------------------------------------------------------------+
Technical Details
Message-ID:
<2217@lpami.wimsey.bc.ca>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!van-bc!Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!van-bc! From: lphillips@lpami.wimsey.bc.ca (Larry Phillips) Newsgroups: comp.sys.amiga.tech Subject: Re: PIPEs Message-ID: <2217@lpami.wimsey.bc.ca> Date: 11 Nov 90 19:35:47 GMT Lines: 27 Return-Path: <lpami!lphillips> To: van-bc!rnews