<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BioErrorLog</author_name>
  <author_url>https://blog.hatena.ne.jp/BioErrorLog/</author_url>
  <blog_title>BioErrorLog Tech Blog</blog_title>
  <blog_url>https://www.bioerrorlog.work/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>shell</anon>
  </categories>
  <description>JSON形式ごとにjqコマンドでレコード件数をカウントする方法をまとめます。 はじめに 環境 JSONのレコード件数をカウントする 配列括りのJSON Document オブジェクト括りのJSON Document JSON Lines おわりに 参考 はじめに 先日、LinuxコマンドラインでJSONのレコード件数をカウントすることがありました。 csvファイルであれば行数をカウントすれば済みますが、JSONの場合は記述形式によってカウント方法を工夫する必要があります。 今回は、jqコマンドを用いたJSON形式ごとのレコード数カウント方法をまとめます。 The English transla…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.bioerrorlog.work%2Fentry%2Fcount-json-items-in-linux&quot; title=&quot;JSONのレコード件数をjqコマンドでカウントする | Linux shell - BioErrorLog Tech Blog&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-ak.f.st-hatena.com/images/fotolife/B/BioErrorLog/20210529/20210529161837.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-29 16:19:25</published>
  <title>JSONのレコード件数をjqコマンドでカウントする | Linux shell</title>
  <type>rich</type>
  <url>https://www.bioerrorlog.work/entry/count-json-items-in-linux</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
