<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ftsh</author_name>
  <author_url>https://blog.hatena.ne.jp/ftsh/</author_url>
  <blog_title>fメモ いまさら館</blog_title>
  <blog_url>https://ftsh.hateblo.jp/</blog_url>
  <categories>
    <anon>メモ</anon>
    <anon>shell</anon>
  </categories>
  <description>同一のコマンドであっても、オプションが微妙に異なるとかっていうのは、以外に経験が少ない。 今回は、dateコマンドで現在時刻を基点にして指定日数前の日付を得る例。 下記は等価なコマンドオプションとなる。 #!/bin/sh ## Linux (CentOS 5) date +%Y%m%d -d &quot;3 days ago&quot;; #!/bin/sh ## FreeBSD 4,5,6 date -v &quot;-3d&quot; &quot;+%Y%m%d&quot;;</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fftsh.hateblo.jp%2Fentry%2F20081126%2F1227670177&quot; title=&quot;linuxとFreeBSDでの、date コマンドの差 : 数日前の日付を得る - fメモ いまさら館&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-26 12:29:37</published>
  <title>linuxとFreeBSDでの、date コマンドの差 : 数日前の日付を得る</title>
  <type>rich</type>
  <url>https://ftsh.hateblo.jp/entry/20081126/1227670177</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
