title: Can I use grep to extract a single column of a CSV file?
body: <p>I'm trying to solve o problem I have to do as soon as possible.
  I have a csv file, fields separated by ;.
  I'm asked to make a shell command using grep to list only the third column, using regex. I can't use cut. It is an exercise.</p>
  
  <p>My file is like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>1;Evan;Bell;39;Obigod Manor;Ekjipih;TN;25008
  2;Wayne;Watkins;22;Lanme Place;Cotoiwi;NC;86578
  3;Danny;Vega;25;Fofci Center;Momahbih;MS;21027
  4;Larry;Robinson;23;Bammek Boulevard;Gaizatoh;NE;27517
  5;Myrtie;Black;20;Savon Square;Gokubpat;PA;92219
  6;Nellie;Greene;23;Utebu Plaza;Rotvezri;VA;17526
  7;Clyde;Reynolds;19;Lupow Ridge;Kedkuha;WI;29749
  8;Calvin;Reyes;47;Paad Loop;Beejdij;KS;29247
  9;Douglas;Graves;43;Gouk Square;Sekolim;NY;13226
  10;Josephine;Estrada;48;Ocgig Pike;Beheho;WI;87305
  11;Eugene;Matthews;26;Daew Drive;Riftemij;ME;93302
  12;Stanley;Tucker;54;Cure View;Woocabu;OH;45475
  13;Lina;Holloway;41;Sajric River;Furutwe;ME;62184
  14;Hettie;Carlson;57;Zuheho Pike;Gokrobo;PA;89098
  15;Maud;Phelps;57;Lafni Drive;Gokemu;MD;87066
  16;Della;Roberson;53;Zafe Glen;Celoshuv;WV;56749
  17;Cory;Roberson;56;Riltav Manor;Uwsupep;LA;07983
  18;Stella;Hayes;30;Omki Square;Figjitu;GA;35813
  19;Robert;Griffin;22;Kiroc Road;Wiregu;OH;39594
  20;Clyde;Reynolds;19;Lupow Ridge;Kedkuha;WI;29749
  21;Calvin;Reyes;47;Paad Loop;Beejdij;KS;29247
  22;Douglas;Graves;43;Gouk Square;Sekolim;NY;13226
  23;Josephine;Estrada;48;Ocgig Pike;Beheho;WI;87305
  24;Eugene;Matthews;26;Daew Drive;Riftemij;ME;93302
  </code></pre>
  
  <p>I think I should use something like: cat &lt; test.csv | grep 'regex'.</p>
  
  <p>Thanks.</p>