From 1cb5fe46d3e2d2e4c92c6207105e4dba4021c850 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 10 Jan 2015 19:19:23 +0100 Subject: [PATCH] Workshop - first step --- bin/import.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bin/import.py diff --git a/bin/import.py b/bin/import.py new file mode 100644 index 0000000..3741274 --- /dev/null +++ b/bin/import.py @@ -0,0 +1,13 @@ +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()