I know perl way to search a string inside other file. Is there an easy awk way to search a string in side second file?
Example: Data1
1 TGAGGTAGTAGGTTGTATAGTT
2 CTATACAATCTACTGTCTTTC
Exaple: Data2
>1 TGAGGTAGTAGGTTGTATAGTT
>2 TGAGGTAGTAGGTTGTATAGTT
>3 TGAGGTAGTAGGTTGTATAGTT
>4 CTATACAATCTACTGTCTTTC
>5 CTATACAATCTACTGTCTTTC
>6 TGAGGTAGTAGGTTGTGTGGTT
>7 CTATACAACCTACTGCCTTCCC
>8 TGAGGTAGTAGGTTGTATAGTT
The purpose is to take $2 data1 and search in $2 of Data2. If found
Echo the $0 from both file side by side.
In perl I have achieved using seek funcation
Dereje
Example: Data1
1 TGAGGTAGTAGGTTGTATAGTT
2 CTATACAATCTACTGTCTTTC
Exaple: Data2
>1 TGAGGTAGTAGGTTGTATAGTT
>2 TGAGGTAGTAGGTTGTATAGTT
>3 TGAGGTAGTAGGTTGTATAGTT
>4 CTATACAATCTACTGTCTTTC
>5 CTATACAATCTACTGTCTTTC
>6 TGAGGTAGTAGGTTGTGTGGTT
>7 CTATACAACCTACTGCCTTCCC
>8 TGAGGTAGTAGGTTGTATAGTT
The purpose is to take $2 data1 and search in $2 of Data2. If found
Echo the $0 from both file side by side.
In perl I have achieved using seek funcation
Dereje