<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BigFatCat</author_name>
  <author_url>https://blog.hatena.ne.jp/BigFatCat/</author_url>
  <blog_title>BigFatCatのブログ</blog_title>
  <blog_url>https://bigfatcat.hateblo.jp/</blog_url>
  <categories>
    <anon>shellscript</anon>
  </categories>
  <description>単語の出現頻度を調べるには以下のようにコマンドどうしをパイプで連携させる方法がある。 $ cat somefile | tr ' ' '\n' | sort | uniq -c | sort -nr | head このワンライナーで自分がよく理解できなかったのが、tr コマンドの後に使われている sort コマンド。tr の後に uniq -c を直接つなげちゃえば単語の出現頻度は数えられるじゃんと思っていた。だけど、実際やってみると重複している行が出てきてしまってうまくいかない。 そこで、 $ info uniq で調べてみると以下の記述を発見。 The input need not be …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbigfatcat.hateblo.jp%2Fentry%2F20070905%2F1188983899&quot; title=&quot; 単語の出現頻度を調べる シェルスクリプトメモ（3） - BigFatCatのブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-09-05 18:18:19</published>
  <title> 単語の出現頻度を調べる シェルスクリプトメモ（3）</title>
  <type>rich</type>
  <url>https://bigfatcat.hateblo.jp/entry/20070905/1188983899</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
