Skip to content

Instantly share code, notes, and snippets.

@AndreaCatalucci
Created February 26, 2014 14:41
Show Gist options
  • Select an option

  • Save AndreaCatalucci/9230583 to your computer and use it in GitHub Desktop.

Select an option

Save AndreaCatalucci/9230583 to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
import sys
for line in sys.stdin:
data = line.strip().split("\t")
if len(data) != 6:
continue
date, time, store, item, cost, payment = data
print "{0}\t{1}".format(item, cost)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment