zpwiki/pages/students/2016/patrik_pavlisin/dp2022/prepare-data.sh

11 lines
234 B
Bash
Raw Normal View History

import sys
for l in sys.stdin:
line = l.rstrip()
tokens = line.split()
result = []
for token in tokens:
items = token.split("|")
print(items)
result.append(items[0])
print(" ".join(result))