<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m-hiyama</author_name>
  <author_url>https://blog.hatena.ne.jp/m-hiyama/</author_url>
  <blog_title>檜山正幸のキマイラ飼育記 (はてなBlog)</blog_title>
  <blog_url>https://m-hiyama.hatenablog.com/</blog_url>
  <categories>
    <anon>雑記／備忘</anon>
  </categories>
  <description>urls.txtには、1行に一つのURLが記述されているとします。これを、アンカーのリストであるHTMLに変換しようと思ったのです。なんかスクリプト言語を使うか、とも思ったのですが、printfコマンドがあるからシェルのワンライナーでもいいだろうと、 $ (echo '&lt;ol&gt;'; cat urls.txt | while read url; do printf &quot;&lt;li&gt;&lt;a href=\&quot;%s\&quot;&gt;%s&lt;/a&gt;&lt;/li&gt;\n&quot; $url $url; done; echo '&lt;/ol&gt;') &gt; tmp.htmlreadコマンで1行ずつ読んで、それをprintfコマンドに渡しただけです。ワンラ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm-hiyama.hatenablog.com%2Fentry%2F20131115%2F1384482219&quot; title=&quot;このシェル・ワンライナーがけっこう役立った： printfコマンドで超簡易テンプレート - 檜山正幸のキマイラ飼育記 (はてな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>2013-11-15 11:23:39</published>
  <title>このシェル・ワンライナーがけっこう役立った： printfコマンドで超簡易テンプレート</title>
  <type>rich</type>
  <url>https://m-hiyama.hatenablog.com/entry/20131115/1384482219</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
