Re: batch add users to group

2002-05-04 Thread Colin Watson
On Sat, May 04, 2002 at 12:40:35AM -0700, Mike Egglestone wrote: > I would like to add some users to a group in batch format. > Something along these lines: > > adduser `awk F: '&3 >= 1000 {print $1}' /etc/passwd` groupname Something more like this would work: for x in `awk -F: '$3 >= 1000 {pr

Re: batch add users to group

2002-05-04 Thread Karl E. Jorgensen
On Sat, May 04, 2002 at 12:40:35AM -0700, Mike Egglestone wrote: > Hello, > > I would like to add some users to a group in batch format. > Something along these lines: Why? [I'm not sure what you're trying to do, but something is not right here] Why not use the "others" permissions on the files

batch add users to group

2002-05-04 Thread Mike Egglestone
Hello, I would like to add some users to a group in batch format. Something along these lines: adduser `awk F: '&3 >= 1000 {print $1}' /etc/passwd` groupname but this obviously doesn't work. I used to know of a command but I forgot it. Any help would be great thanks!! Mike -- To UNSUBSCRIBE