summaryrefslogtreecommitdiff
path: root/scripts/stripreg
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-21 15:55:03 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-21 15:55:03 -0400
commit000bfe1cece3ecbfee8f07a46d1f0b000dbbc983 (patch)
tree6d2c666097900fff421da6a57b41f0a7c43a39b7 /scripts/stripreg
parent225acd14e57a0a476ce022a7c5703a8f1cee34ef (diff)
downloadfork-ledger-000bfe1cece3ecbfee8f07a46d1f0b000dbbc983.tar.gz
fork-ledger-000bfe1cece3ecbfee8f07a46d1f0b000dbbc983.tar.bz2
fork-ledger-000bfe1cece3ecbfee8f07a46d1f0b000dbbc983.zip
only compute the cost when it differs from the amount
Diffstat (limited to 'scripts/stripreg')
-rwxr-xr-xscripts/stripreg16
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/stripreg b/scripts/stripreg
deleted file mode 100755
index c974e646..00000000
--- a/scripts/stripreg
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/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])