Be seen. Boost your question’s priority for more expert views and faster solutions
#!/bin/bash
while read LINE
do
if [ $LINE = "EOF" ]; then
break
fi
useradd $LINE
done < $1
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Use this code to add the password. Although this is frowned upon (using the same password as username) and some systems might reject the password telling you it is using the username.
Open in new window