Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. for userdetails in `cat users.csv`
  2. do
  3. user=`echo $userdetails | cut -f 1 -d ,`
  4. passwd=`echo $userdetails | cut -f 2 -d ,`
  5. useradd $user -m -p `mkpasswd $passwd`
  6. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement