I have a cvs repository with different modules. The setup is always the same:
/data/cvs/<repo>/CVSROOT/passwd
I need to have a short script that loops over all repositories and performs this command:
grep "^iq" <repo>/CVSROOT/passwd | sort | uniq
The purpose is to have all usernames that start with the prefix "iq". The output will be a list with usernames, passwordhashes and the cvsmodule:
iqabcde:5!h8kdh2937slj:cvsabc
This output should be split by using ":" as terminator. I need to have 3 variables that I can access.
To be honest I don't have a lot of knowledge in shell scripting. Would be great if anyone could help, because I think this is solvable.
Thanks a lot