What is the easiest way to check if column A and B values goes both ways?Output to check:Mike JohnJohn MikePamela BarbaraBarbara PamelaMike PaulRoger PaulDesired outputMike <-> JohnPamela <-> BarbaraMike -> PaulRoger -> PaulPS.First it could be like looking all the possible values in A and B column, then doing wordcount for each lineMike John 1 1Pamela Barbara 1 1Mike Paul 1 0 Roger Paul 1 0Then change is output to desired one.
What is the easiest way to check if column A and B values goes both ways with AWK?
bash;text processing;awk;python;perl