LinguaFranca
Technical User
I have a tab separated 3 column text file with $file, $source and $target on each row.
1st: I need to identify all rows with identical $source;
2nd: I'll take the result of the 1st step and compare the $target. If different $target are used for $source, the output should give me all rows of that $source. Hope, I am clear enough.
Input
Desired output
Could you give a hint how to program this? Is it wise to use data structures (array of arrays?)
1st: I need to identify all rows with identical $source;
2nd: I'll take the result of the 1st step and compare the $target. If different $target are used for $source, the output should give me all rows of that $source. Hope, I am clear enough.
Input
Code:
file1 cancel abbrechen
file1 cancel abbrechen
file2 cancel annulieren
file2 cancel abbrechen
file1 change ändern
file3 delete löschen
file4 delete leeren
file1 view ansicht
file4 view ansicht
file3 view ansicht
Code:
file1 cancel abbrechen
file1 cancel abbrechen
file2 cancel annulieren
file2 cancel abbrechen
file3 delete löschen
file4 delete leeren