I want to do this but it doesn't work
input.csv
is like this :
name number
toto 125
tata 126
popo 126
nono 127
file.csv
is like this
number
126
127
desired output.csv
is like this :
name number
tata 126
popo 126
nono 127
for number in $(cat ~/Documents/file.csv) ;
do
awk -F, '$2 == "$number|cut -d',' -f1"' input.csv >> output.csv
done