<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hokaccha</author_name>
  <author_url>https://blog.hatena.ne.jp/hokaccha/</author_url>
  <blog_title>hokaccha memo</blog_title>
  <blog_url>https://hokaccha.hatenablog.com/</blog_url>
  <categories>
    <anon>sh</anon>
  </categories>
  <description>時間をファイル名につけるようなシェルスクリプト書くときに FILE_NAME=`date +&quot;%Y%m%d-%k%M%S&quot;`.tar.gz とかすると、時間が一桁（1時〜9時）だったとき、%kは空白入りの文字列になるので意図しない動作になることがある。 $ date -d &quot;2011-07-10 01:00:00&quot; +&quot;%Y-%m-%d_%k:%M:%S&quot; 2011-07-10_ 1:00:00 %Hとかを使う $ date -d &quot;2011-07-10 01:00:00&quot; +&quot;%Y-%m-%d_%H:%M:%S&quot; 2011-07-10_01:00:00</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F20110720%2F1311137643&quot; title=&quot;dateコマンドのフォーマットで%kとか使うとき注意 - hokaccha memo&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>2011-07-20 13:54:03</published>
  <title>dateコマンドのフォーマットで%kとか使うとき注意</title>
  <type>rich</type>
  <url>https://hokaccha.hatenablog.com/entry/20110720/1311137643</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
