So this is what I got by now but something is missing...
#!/bin/bash IFS.OLD=&IFS IFS=$'\n' for entry in `cat /home/student/public_html/Users.txt` do IFS=: for i in &entry do useradd $i -p #I'm not sure how to include the $password here... done done
Thank you for your help!

New Topic/Question
Reply




MultiQuote




|