MalwareClassifier/bin/import.py

14 lines
332 B
Python
Raw Normal View History

2015-01-10 18:19:23 +00:00
import argparse
import sys
argParser = argparse.ArgumentParser(description='Malware classifier')
argParser.add_argument('-f', action='append', help='Filename')
args = argParser.parse_args()
if args.f is not None:
filename = args.f
for line in sys.stdin:
print (line.split(",")[0])
else:
argParser.print_help()