I
Ivan
Hi all..
I'm in need of some help..
I'm looking after a subversion machine with many repositories and many
users in the passwd files for each..
Currently when I want to get rid of one of the users, I normally have
to go through each repository, look in the passwd file and delete the
user manually..
I'm assuming with perl I might be able to make up a quick script that
will look inside each repo, find the line with the user, delete it and
save the file.. It will save a lot of my time..
Either a perl script or a shell script might be suitable for this..
All I got at the moment is the command line: grep -l "troppd" */conf/
passwd
So instead of going through hundreds of repositories, I only have to
go into the ones where "troppd" appears and I can delete it..
Would someone be able to give me an idea of what such script would
look like?
Either that, or tell me whether it's very hard to write or not ..
I've not done perl in many years so I don't even know where to start..
I'm in need of some help..
I'm looking after a subversion machine with many repositories and many
users in the passwd files for each..
Currently when I want to get rid of one of the users, I normally have
to go through each repository, look in the passwd file and delete the
user manually..
I'm assuming with perl I might be able to make up a quick script that
will look inside each repo, find the line with the user, delete it and
save the file.. It will save a lot of my time..
Either a perl script or a shell script might be suitable for this..
All I got at the moment is the command line: grep -l "troppd" */conf/
passwd
So instead of going through hundreds of repositories, I only have to
go into the ones where "troppd" appears and I can delete it..
Would someone be able to give me an idea of what such script would
look like?
Either that, or tell me whether it's very hard to write or not ..
I've not done perl in many years so I don't even know where to start..