I wish to pass each line of a file as a grep pattern to be searched in data.txt file.
Thus, i need
cat allsearchstrings.txt | grep <should be lines of allsearchstrings.txt> data.txt
: 'CANV' : 'CANV_MATCH' : 'MY'
xargs could be the solution but I'm not sure how-to.
Note: the content of allsearchstrings.txt may have single quotes
Could you please suggest?