Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. /usr/bin/env python
  2. f1=open("location of file 1","r")
  3. f2=open("location of file 2","a")
  4. phone="number"
  5. for line in f1:
  6.     if line.contains(phone):
  7.         f2.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement