Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (18 sloc) 0.421 kb
#!/usr/bin/python
import sys
bytes=eval(sys.argv[1])
print "looking for ",bytes
idx = 0
prefix="candidate"
candidateTab=[]
allbytes = sys.stdin.read()
found=allbytes.find(bytes)
while found != -1:
candidateTab.append(found)
path=prefix+str(idx)
out = open(path,'wb')
out.write(allbytes[found:])
print found, path
out.close()
idx = idx + 1
found=allbytes.find(bytes,found+1)
Jump to Line
Something went wrong with that request. Please try again.