<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Udomomo</author_name>
  <author_url>https://blog.hatena.ne.jp/Udomomo/</author_url>
  <blog_title>りんごとバナナ</blog_title>
  <blog_url>https://udomomo.hatenablog.com/</blog_url>
  <categories>
    <anon>コマンド</anon>
    <anon>ShellScript</anon>
  </categories>
  <description>結合テスト後の結果比較や生データの処理などのために、数MBくらいのCSVを取り扱いたい時がある。なかでも、いろいろな処理を行う前に、たいていtimestamp等で各行をソートする必要があることが多い。エンジニアになる前はExcelを開いて頑張っていたけれど、もっと手軽に処理したいと思うようになったので、Excelを開かずにコマンドでソートを行う方法をまとめてみた。 sortコマンドで直接ソート 特定の列の値でソートしたいだけなら、sortコマンドで直接できる。 sort -t, -k 3 file.csv -t オプションは区切り文字の指定ができ、-k オプションは区切り文字を基準とした列数を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fudomomo.hatenablog.com%2Fentry%2F2019%2F03%2F15%2F173655&quot; title=&quot;コマンドラインでCSVをソートする方法まとめ - りんごとバナナ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-15 17:36:55</published>
  <title>コマンドラインでCSVをソートする方法まとめ</title>
  <type>rich</type>
  <url>https://udomomo.hatenablog.com/entry/2019/03/15/173655</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
