Guest User

Untitled

a guest
Nov 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Nov 18 09:35:13, Probe Request, c0:ee:fb:35:b6:a0, Intertelecom_FREE
  2.  
  3. pattern = r'ПАТТЕРН'
  4.  
  5. with open('pineap.log') as log, open("result.txt", "w") as output:
  6. for line in log:
  7. _, _, mac, name = [s.strip() for s in line.split(',')]
  8. output.write('{} {}'.format(mac, name))
Add Comment
Please, Sign In to add comment