[OpenAFS] pulling names from file

Noel Burton-Krahn noel@bkbox.com
Wed, 28 May 2003 16:30:42 -0700


The same thing, but shorter and safe for spaces:

xargs -i pts removeu {} group < file

--Noel


----- Original Message ----- 
From: "Derrick J Brashear" <shadow@dementia.org>
To: "openafs" <openafs-info@openafs.org>
Sent: Wednesday, May 28, 2003 3:51 PM
Subject: Re: [OpenAFS] pulling names from file


> On Wed, 28 May 2003, David Bear wrote:
> 
> > is there any way to run pts removeuser filename group
> >
> > where filename has a list of users to remove from a group?
> > (a simple shell script would work I guess if one exists)
> 
> assuming csh
> foreach i (`cat file`)
> pts removeu $i group
> end
> 
> wrap it in something that uses $1 and $2. make sure you don't have users
> with spaces in them.
> 
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
> 
>