Advertisement
parkdream1

get_user.py

Oct 12th, 2013
766
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import re
  2. USER_LIST = 'passwd.txt'
  3. with open(USER_LIST) as f:
  4.     for line in f:
  5.         line = line.replace("\n","")
  6.         test = line.split(":x:")[0]
  7.         print "Write %s"%test
  8.         open('user.txt', 'a').write(test+"\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement