I have one output.txt file in which there are 20000 strings. see below it looks like that. It is genome coordinate file.
X:10063445|10067490 X:10063445|10079804 X:10063445|10098579 X:10063445|10110020 X:100914621|100915083 X:101018971|101019403 X:101018971|101020588 X:101020487|101021315 X:101020487|101023616 X:101035613|101038051 X:101035613|101041371 X:101035613|101042312 X:101041317|101042312 X:101101058|101109998 X:101101058|101148161 X:101120402|101120784 X:101126709|101148161 X:101895814|101898042
I want to grep these string in my result.txt file which have 10 column text file and the 1st column is look like output.txt file. I just want output of those strings are present or not in my result.txt file and save in another test file. I also want to extract total 1st 5 column which are present in result.txt file.
Thank you so much in advance.