File1:
hello
- dictionary definitions:
hi
hello
hallo
greetings
salutations
no more hello for you
-
world
- dictionary definitions:
universe
everything
the globe
the biggest tree
planet
cess pool of organic life
-
Мне нужно отформатировать это (для огромного списка слов) в формате термин-определение (одна строка на термин). Как можно этого достичь? Ни одно из слов не одно и то же, только структура, представленная выше. Результирующий файл будет выглядеть примерно так:
hello - dictionary definitions: hi hello hallo greetings salutations no more hello for you -
world - dictionary definitions: universe everything the globe the biggest tree planet cess pool of organic life -
Awk / Sed / Grep / Cat - обычные соперники.