I am trying to use the values from my textfile in my bash script
AantalUsers=$(cat newusers.txt | wc -l)
echo $AantalUsers
lijstUsername=""
lijstWachtwoord=""
for ((i = 0 ; i < $AantalUsers ; i++ ));
do
lijstUsername=`awk -F" " '{print $1}' test.txt`
lijstWachtwoord=`awk -F" " '{print $2}' test.txt`
done <test.txt
echo $lijstUsername
echo $lijstWachtwoord
My textfile looks like this :
This is the output that I get :
The first list works great but for the second one I only get the last value of the textfile.
What could be the problem?

