I have 2 files one named Group.csv Containing
thisisgroupone
and another named Users.csv
Testuser1,Testuser2,TestUser3
This my script so far:
# this part of the script will now add the created users into the created group!
while IFS=, read col1 col2 col3
do
usermod -g $READ GROUP.CSV$ $col1
usermod -g $READ GROUP.CSV$ $col2
usermod -g $READ GROUP.CSV$ $col3
done < Users.csv
echo "Users now moved to new group sepcifyed in Group.csv"
- Im trying to figure out a way to read both files at once to complete this statement.
Thanks =D