<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekokichi_yos2</author_name>
  <author_url>https://blog.hatena.ne.jp/nekokichi_yos2/</author_url>
  <blog_title>ねこきちのプログラミング墓地</blog_title>
  <blog_url>https://nekokichi2yos2.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>シェルスクリプト</anon>
  </categories>
  <description>どうも、ねこきち（@nekokichi1_yos2）です。 とある企業のコーディング課題で、ファイルを監視する問題が出て、シェルスクリプトで実装しました。 備忘録として投稿します。 動作環境 仕組み 監視対象のファイルパスを取得 変更日時を取得 監視開始 最新の変更日時を取得 変更日時、現在の変更日時を比較 変更日時を更新 実行結果 ソースコード 参考 動作環境 MacBookAir(M1 2020) macOS Monterey 12.1 /bin/zsh 仕組み 監視対象のファイルパスを取得 監視したいファイルのパスを用意。 シェルの実行ファイル（.sh）と同じ箇所なら、ファイル名だけで良…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekokichi2yos2.hatenablog.com%2Fentry%2F2022%2F04%2F10%2F122450&quot; title=&quot;指定ファイルの更新時に通知してくれるスクリプト【シェルスクリプト】 - ねこきちのプログラミング墓地&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>2022-04-10 12:24:50</published>
  <title>指定ファイルの更新時に通知してくれるスクリプト【シェルスクリプト】</title>
  <type>rich</type>
  <url>https://nekokichi2yos2.hatenablog.com/entry/2022/04/10/122450</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
