<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aike</author_name>
  <author_url>https://blog.hatena.ne.jp/aike/</author_url>
  <blog_title>aike’s blog</blog_title>
  <blog_url>https://aike.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>今日仕事で作ったプログラムがちょっと面白かったのでメモ。業務に関係する用語を別の言葉に置き換えると次のような処理です。 問題 ファイル１のような形式のファイルをファイル２の形式に変換する。つまり、最初と最後以外のパンをすべて肉に置換する。ただしパンの行数は不定。また、ファイル中にはパン以外の任意の文字列の行が含まれる。同形式のファイルが大量にあるのでawk（とシェル）を使って一括処理したい。ファイル１（変換前） : パン パン レタス パン トマト パン パン : :ファイル２（変換後） : パン 肉 レタス 肉 トマト 肉 パン : : 解答例 #!/usr/bin/nawk -f /^パン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faike.hatenablog.com%2Fentry%2F20081112&quot; title=&quot;awkパズル：サンドイッチ問題 - aike’s 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-11-12 00:00:00</published>
  <title>awkパズル：サンドイッチ問題</title>
  <type>rich</type>
  <url>https://aike.hatenablog.com/entry/20081112</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
