I need a list of lines that do not have any overlap, and a list of lines that have overlap. We can have any number of genes in each line (separated by comma)! I like to do it in awk, but I'm not very familiar with all the commands.
L2 ydaS,ydaT, ydaU,ydaV,ydaW,rzpR
Non-overlapping lines: L1 L2 L3
Overlapping lines: L4 L5