cat iris.txt | python test.py

import sys import re

pattern= r’^([(\d.)]+) - - [(.?)] “(.?) (.?) (.?)” (\d+) (\d+)’ for line in sys.stdin: data = line.strip() print(“1” + data)