<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>awk</anon>
  </categories>
  <description>ある程度スクリプトの内容が熟れてきたら、 awkスクリプトの単独実行を検討してみるのもいいでしょう。 実際のところ 標準出力から数字列を受け取り、fizzbuzzの個数を受け取る以下のようなスクリプトがあったとします。 BEGIN { count = 0 } $1 % 3 == 0 &amp;&amp; $1 % 5 == 0 { count = count+1 } END { print &quot;I found &quot; count &quot; fizzbuzz numbers. :)&quot; } これを単独実行可能にするのは、他のスクリプト言語同様、 スクリプトの頭に #! 実行内容と、コマンド実行の一文を記載するわけです。 aw…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2015%2F11%2F01%2F235401&quot; title=&quot;awkプログラムを単独実行可能な状態にしておく - Bye Bye Moore&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>2015-11-01 23:54:01</published>
  <title>awkプログラムを単独実行可能な状態にしておく</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2015/11/01/235401</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
