Skip to content

Instantly share code, notes, and snippets.

@mactanxin
Created November 17, 2009 07:07
Show Gist options
  • Save mactanxin/236732 to your computer and use it in GitHub Desktop.
Save mactanxin/236732 to your computer and use it in GitHub Desktop.
# -*- coding:utf-8-*-
import os,sys
filename = sys.argv[1]
openfile = open(filename)
condition = str(sys.argv[2])
for i in open(filename):
i=i.strip()
data = i.split('|')[2]
if condition == data:
print i.split('|')[5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment