Skip to content

Instantly share code, notes, and snippets.

@iktakahiro
Created December 30, 2013 16:14
Show Gist options
  • Save iktakahiro/8184089 to your computer and use it in GitHub Desktop.
Save iktakahiro/8184089 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'Takahiro Ikeuchi'
import sys
import re
def main():
line = sys.stdin.readline()
try:
while line:
key, value = line.split(',')
print key + '\t' + re.sub('\n', '', value)
line = sys.stdin.readline()
except "end of file":
return None
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment