NTRT Simulator  v1.1
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
printParams.py
1 """ Prints all but the first two comma-separated values on every line """
2 """ Input must be comma separated, output will be comma separated """
3 
4 import sys
5 
6 try:
7  f = open(sys.argv[1], 'r')
8  for line in f:
9  for i in range(2, len(line.split(','))):
10  if (i < len(line.split(','))-1):
11  sys.stdout.write(line.split(',')[i] + ",")
12  else:
13  sys.stdout.write(line.split(',')[i])
14 finally:
15  f.close()
16