Advertisement
Fhernd

parseo.py

Mar 18th, 2018
1,040
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. argumentos = 'nobody:*:-2:-2:Unprivileged User:/var/empty:/usr/bin/false'
  2.  
  3. usuario, *argumentos, directorio_trabajo, comando = argumentos.split(':')
  4.  
  5. print(usuario)
  6. print(directorio_trabajo)
  7. print(comando)
  8. print(len(argumentos))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement