Advertisement
john6847

mm

Jun 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.55 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import sys
  4.  
  5. # input comes from STDIN (standard input)
  6. for line in sys.stdin:
  7.     # remove leading and trailing whitespace
  8.     line = line.strip()
  9.     # split the line into words
  10.     words = line.split("\t")
  11.     # increase counters
  12.     #for word in words:
  13.         # write the results to STDOUT (standard output);
  14.         # what we output here will be the input for the
  15.         # Reduce step, i.e. the input for reducer.py
  16.         #
  17.         # tab-delimited; the trivial word count is 1
  18.    
  19.     print '%s\t%s' %(words[2],words[4])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement