Thank you both for your replies. Unfortunately I have tried both of them,
1. with the awk script I only ended up getting the headers as the output:
PDB CHAIN StartPos EndPos PDB CHAIN StartPos EndPos
2. With the join command I output to a txt file but I ended up with nothing?
Could you both kindly explain the code to me? Maybe if I get the logic then I can modify it accordingly. Thanks!
---------- Post updated at 04:45 PM ---------- Previous update was at 04:39 PM ----------
I doubled checked, I had wrongly-formatted files so the commands weren't working properly. Both working find now!
Thank you very much!!
PS: Is there a way however to modify it so that I don't end up with duplicates:
For example, I end up with
glelk 1avq A 129 133 1avq A 129 133
which is basically an identical row in both FilesA and FilesB