I have a universe file /tmp/universe.txt
aaa
bbb
ccc
I have another csv file, and I only wants to print a certain fields of a row of this csv file if the first field exists in /tmp/universe.txt
for example for this file
aaa,1
ddd,3
ccc,2
I want to print
aaa,1
ccc,2
How do I achieve it? I could write a python/perl script, but i suspect there are more elegant solution in awk/bash etc.