Created
November 17, 2009 07:07
-
-
Save mactanxin/236732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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