I have a CSV file that contains usernames and passwords. The file looks something like this:
user1,password1 user2,password2 user3,password3
I need to loop through each line to grab the username and password, use those variables, and then grab the next set of usernames and passwords, replace the content of the variables with the new ones, etc.
I've been searching for the best way to do this, but I'm not very familiar scripting and I'm getting lost. I've used awk
to grab both individually, but I'm struggling to figure out how to use awk
within a while loop. And I'm reading that might not be a great approach.
use those variables
- if you post some concise, testable sample input and expected output then we can help you.