Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7433153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:34:17+00:00 2026-05-29T09:34:17+00:00

I have a cvs repository with different modules. The setup is always the same:

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:34:18+00:00Added an answer on May 29, 2026 at 9:34 am

    I’m bored.

    #!/bin/bash
    for repo in /data/cvs/*
    do
      IFS=: read username hash module < <(grep "^iq" "$repo"/CVSROOT/passwd | sort | uniq)
      echo "Name: $username, Hash: $hash, Module: $module"
    done
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an online CVS repository that I need to check code into. However,
Here is the scenario that I have. I have a cvs repository in one
I'm trying to check out files from our CVS Repository (I have access, but
I have setup an anonymous cvs user to be able to check out my
We have a large number of programmers on different platforms all using CVS. We
I have a large CVS Repository in a Netbeans Java Project. I used to
I have created a CVS repository on my system. I am using the Eclipse
Firstly, I have migrated my CVS repository into SVN repository. I checked out this
I have huge projects on a CVS repository, and I'm looking for ways to
Currently, we have the following in our CVS Repository : Module1 | | +-----A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.