Hi Power User,
I have this following data:
file1
aa A
aa B
aa C
bb X
bb Y
bb Z
cc O
cc P
cc Q
. .
. .
. .
. .
and I want to turn them into a connection nodes like this:
file2
A aa A
A aa B
A aa C
B aa C
B aa B
C aa C
X bb X
X bb Y
X bb Z
Y bb Z
Y bb Y
Z bb Z
. . .
. . .
. . .
. . .
I made this relation, to create a graph. The file could have more than 100.000 lines. Any suggestion, how to create file2 by using
perl or awk? Tx