summaryrefslogtreecommitdiff
path: root/scripts/stripreg
blob: c974e646f24f53f7d544c3bbe212162ae8c7f3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python

import sys
import re

print_total = 0

def clean(num):
    return float(re.sub("(\s+|\$|,)","",num))

for line in sys.stdin:
    print line[:10],
    if print_total:
	print clean(line[68:80])
    else:
	print clean(line[55:67])