Guest User

Untitled

a guest
Jan 17th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. 84882667V:Barberan Neila, David
  2. 49432717J:Callejas Paytuví, Alfonso
  3. 74541195N:Camacho Ayuso-Morales, Alejandro
  4.  
  5. #!/bin/bash
  6.  
  7. user=$(cut -c "1-9" -z llistat1.txt)
  8. pass=$(cut -d "," -d " " -f 3 -z llistat1.txt)
  9.  
  10. useradd $user -p $pass
  11.  
  12. for $linea in $(cat lista1.txt); do
  13.  
  14. $user=$(echo $linea | cut -d: -f1);
  15. $pass=$(echo $linea | cut -d, -f2);
  16.  
  17. useradd $user -p $pass
  18.  
  19. done;
Add Comment
Please, Sign In to add comment