Commit f6019496 authored by root's avatar root

liner search in files

parent 1686ff98
import sys
f=open("../data/file1.txt")
string=f.read()
l=string.split(" ")
query=sys.argv[1]
if query in l:
print "FOUND"
else:
print "NOT FOUND"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment