I have a pipe delimited file
Lookup.txt:
Column1|yellow|value|628291
Column9|red|value|346801
File.txt:
Yellow
YellowDiamond
Redgold
I am trying to get the value of Yellow present In File.txt to the exact match from pipe delimited file I.e Lookup.txt. The output should be the entire line as shown below. File.txt file are having the values to search in the file Lookup.txt
I tried awk
, fgrep
commands but they are giving me different values; The expected output is:
Column1|yellow|value|628291