#!/usr/bin/python import sys,string filename = sys.argv[1] fin = open(filename, "r") lines = fin.readlines() fin.close() for line in lines: fields = string.split(line, "\t") if fields[0] != "id": ticketid = "#%s" % (fields[0],fields[0]) print "