Hi everyone.
I got a text file with more than 10 000 entries. Down below there is a preview of its contents:
there are only 4 possibilities what can be in the [] brackts. What I want to do is to copy the word before the [] brackets to a specific file depending to the contents of the []. So if there is [ý] or [y] after the word (or group of words in the specific line) copy it to document "y.txt". If there is [í] or after the word (or group of words in the specific line) copy it to document "i.txt".
The result should look like:
document i.txt
document y.txt
is there any program to do this??? or a terminal command??? PLEASE HELP ME!!! IT IS EXTREMELY IMPORTANT!
THANKS IN ADVANCE!
I got a text file with more than 10 000 entries. Down below there is a preview of its contents:
v.hodný [ý]
p.chnúť sa
z.sť (z cesty) [í]
koleg.ňa [y]
p.lulka
there are only 4 possibilities what can be in the [] brackts. What I want to do is to copy the word before the [] brackets to a specific file depending to the contents of the []. So if there is [ý] or [y] after the word (or group of words in the specific line) copy it to document "y.txt". If there is [í] or after the word (or group of words in the specific line) copy it to document "i.txt".
The result should look like:
document i.txt
p.chnúť sa
z.sť (z cesty)
p.lulka
document y.txt
v.hodný
koleg.ňa
is there any program to do this??? or a terminal command??? PLEASE HELP ME!!! IT IS EXTREMELY IMPORTANT!
THANKS IN ADVANCE!