Skip to content

Instantly share code, notes, and snippets.

@takurx
Created December 31, 2017 06:41
Show Gist options
  • Save takurx/d9aa4d60d93929139d400d35451c1c22 to your computer and use it in GitHub Desktop.
Save takurx/d9aa4d60d93929139d400d35451c1c22 to your computer and use it in GitHub Desktop.
file open, find string and print(standard output)
#!/usr/bin/python
f = open('./Bookmarks.txt')
line = f.readline()
while line:
# print(line)
if line.find('url":') > 0:
print(line)
line = f.readline()
f.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment