mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes
This commit is contained in:
@ -58,7 +58,7 @@ There seem to be many more of these:
|
||||
"@type": "BlogPosting",
|
||||
"headline": "June, 2022",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2022-06/",
|
||||
"wordCount": "1788",
|
||||
"wordCount": "1789",
|
||||
"datePublished": "2022-06-06T09:01:36+03:00",
|
||||
"dateModified": "2023-04-27T13:10:13-07:00",
|
||||
"author": {
|
||||
@ -321,7 +321,7 @@ There seem to be many more of these:
|
||||
<li>Spent some more time working on my <code>countries-to-csv.py</code> script to fix some logic errors</li>
|
||||
<li>Then re-export the UN M.49 countries to a clean list because the one I did yesterday somehow has errors:</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>csvcut -d ';' -c 'ISO-alpha2 Code,Country or Area' ~/Downloads/UNSD\ —\ Methodology.csv | sed -e '1s/ISO-alpha2 Code/alpha2/' -e '1s/Country or Area/UN M.49 Name/' > ~/Downloads/un-countries.csv
|
||||
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$ csvcut -d <span style="color:#e6db74">';'</span> -c <span style="color:#e6db74">'ISO-alpha2 Code,Country or Area'</span> ~/Downloads/UNSD<span style="color:#ae81ff">\ </span>—<span style="color:#ae81ff">\ </span>Methodology.csv | sed -e <span style="color:#e6db74">'1s/ISO-alpha2 Code/alpha2/'</span> -e <span style="color:#e6db74">'1s/Country or Area/UN M.49 Name/'</span> > ~/Downloads/un-countries.csv
|
||||
</span></span></code></pre></div><ul>
|
||||
<li>Check the number of lines in each file:</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user