Sorry to ask a question that many may have already asked.
I have a very long CSV data file (dat.csv) with 5 columns. I have another short CSV file (filter.csv) with 1 column.
Now I only need to extract the columns from dat.csv, where column-1 is the same as filter.csv column-column.
ID,Name,CountryCode,District,Population 3793,NewYork,USA,NewYork,8008278 3794,LosAngeles,USA,California,3694820 3795,Chicago,USA,Illinois,2896016 3796,Houston,USA,Texas,1953631 3797,Philadelphia,USA,Pennsylvania,1517550 3798,Phoenix,USA ,Arizona,1321045 3799,SanDiego,USA,California,1223400 3800,Dallas,USA,Texas,1188580 3801,SanAntonio,USA,Texas,1144646