Permalink
Browse files

Changed NA Pattern to [nN][aA] because earlier HMDA files (2006, at l…

…east) use 'na' instead of 'NA'. Mac does not support the "I" flag for case-insensitive replace in sed, thus necessitating the [nN][aA] regex.
  • Loading branch information...
1 parent a009c67 commit fc2d365d0100166ce17e21d03a49d1a6751bce34 @marcesher marcesher committed Mar 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/loading_data.rst
@@ -49,5 +49,5 @@ To load the 2011 HMDA data into MySQL, run the following:
.. code-block:: bash
wget http://www.ffiec.gov/hmdarawdata/LAR/National/2011HMDALAR%20-%20National.zip -O hmda11.zip
- unzip -p hmda11.zip | sed 's/NA//g' | sed 's/ //g' > hmd11c.csv
+ unzip -p hmda11.zip | sed 's/[nN][aA]//gI' | sed 's/ //g' > hmd11c.csv
mysql -e 'load data local infile 'hmda11c.csv' into table hmda fields terminated by ',' lines terminated by "\n";'

0 comments on commit fc2d365

Please sign in to comment.