in reply to Join lines that match an string
Can you please provide some sample input data, a definition of your "remotely" criterion to match lines, and a sample output data?
And what is "p_agrs"?
edits: