Nice, thanks Barry.
-Craig
________________________________
From: Barry Lake <[log in to unmask]>
To: [log in to unmask]
Sent: Wednesday, March 26, 2014 9:32 AM
Subject: Re: How to remove ACD's from multiple files?
Setting the record straight...
On 3/25/14 10:05 AM, Barry Lake wrote (after Lars):
>> ...I would have attempted something like this (before Keven's cool
>> idea) to take a list of filenames and prepend ALTSEC and append
>>DELACD for execution:
>
> FYI, "DELACD" is an MPEX-ism, I believe. With MPE's ALTSEC command you
> have to use "DELPAIR=..."
Lars is right (of course), there *is* a DELACD parameter to MPE's
ALTSEC. When I looked at the online help I didn't see it due to a
formatting "bug" in the help text.
So my suggested shell loop...
> $ ls L*
> LOGHIST LOGHIST0 LOGHIST1 LOGHIST2 LOGON
> $
> $ for x in L* ; do
> > echo deleting ACD from $x
> > callci "altsec $x;delpair=(\$owner,\$group,\$group_mask,@.@)"
> > done
...can be simplified to:
$ for x in L* ; do
> echo deleting ACD from $x
> callci "altsec $x;delacd"
> done
B.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|