I have the below script to get input but i cannot get grep to work.
input1.txt
AAAAAAAAG
input2.txt
>gi|184009.1| LEAFY-like [Malus x domestica]|AAAAAAAAGSGGGDHLPY
However, when i use grep -f input1.txt input2.txt
i cannot get any output matches (note that the match is underlined).
Is it because of the "|" character in input2.txt? if so, how can i get it to grep the line?
thanks so much for the help
I have found out the reason to why the grep do not work
cause i have been saving the file to a shared folder on a virtual ubuntu guest on window 64bit machine
and at the end of line there is an appened "^M" which was not visualised and i have it replaced and things worked!