join.pl <(sort -t, A.csv) <(grep LALA B.csv | sort -t,) [download]
In reply to Re^2: passing pipes on the command line by Mugatu in thread passing pipes on the command line by iradik