Source

bx-python / scripts / one_field_per_line.py

Full commit
#!/usr/bin/env python

"""
Read a file from stdin, split each line and write fields one per line to 
stdout.

TODO: is this really that useful?
"""

import sys

for line in sys.stdin:
    for field in line.split():
        print field