I have already tried all options that I found online to solve my issue but without good result.
Basically I have two csv files (pipe separated):
file1.
cut -d\| -f7 file1.csv|while read line do grep $line file1.csv|cut -d\| -f3 done