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

11 lines
234 B
Bash

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))