Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /usr/bin/env python
- f1=open("location of file 1","r")
- f2=open("location of file 2","a")
- phone="number"
- for line in f1:
- if line.contains(phone):
- f2.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement