🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #6555

Re: PIPEs (really: Slices)

#6555
From: Pete Goodeve
Date: Mon, 12 Nov 1990 10:15
24 lines
1373 bytes
In  <7025@sugar.hackercorp.com> (11 Nov),
Peter da Silva (peter@sugar.hackercorp.com) writes:
>
> OK, quick. How do you rename all whatever.c-or-h files to old.whatever.c-or-h
> with wildcards instead of slices?
> --
Ah.  You were asking a little while ago what Mat did that was unique.
Well (with the aid of a short CLI script) that sort of renaming is EXACTLY
one of the things I use it for.  (The script is on Fish 374 too.) The
syntax -- also showing one of the ways I use '^' -- is:

        REN whatever.(c|h) old.^F

where '^F' in this case means the original filename.

If I prefer whatever_OLD.c as the result, I do:

        REN whatever^.(c|h) ^0_OLD^1

where the '^' in the pattern is the slice point, and ^0 and ^1 are the
resulting pieces.

                                -- Pete --
Technical Details
Message-ID: <1990Nov12.101531.19828@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!agate!violet.berkeley.edu!pete
References: <6997@sugar.hackercorp.com> <1990Nov7.235254.13959@opusc.csd.scarolina.edu> <7025@sugar.hackercorp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!agate!violet.berkeley.edu!pete
From: pete@violet.berkeley.edu (Pete Goodeve)
Newsgroups: comp.sys.amiga.tech
Subject: Re: PIPEs (really: Slices)
Message-ID: <1990Nov12.101531.19828@agate.berkeley.edu>
Date: 12 Nov 90 10:15:31 GMT
References: <6997@sugar.hackercorp.com> <1990Nov7.235254.13959@opusc.csd.scarolina.edu> <7025@sugar.hackercorp.com>
Sender: usenet@agate.berkeley.edu (USENET Administrator)
Organization: University of California, Berkeley
Lines: 24