root/galaxy-central/eggs/bx_python-0.5.0_dev_f74aec067563-py2.6-macosx-10.6-universal-ucs2.egg/EGG-INFO/scripts/one_field_per_line.py
リビジョン 3, 233 bytes (コミッタ: kohda, 14 年 前) |
---|
行番号 | |
---|---|
1 | #!/usr/bin/python2.6 |
2 | |
3 | """ |
4 | Read a file from stdin, split each line and write fields one per line to |
5 | stdout. |
6 | |
7 | TODO: is this really that useful? |
8 | """ |
9 | |
10 | import sys |
11 | |
12 | for line in sys.stdin: |
13 | for field in line.split(): |
14 | print field |
Note: リポジトリブラウザについてのヘルプは TracBrowser
を参照してください。