[OpenAFS] pulling names from file

Derrick J Brashear shadow@dementia.org
Wed, 28 May 2003 18:51:45 -0400 (EDT)


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.