<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rasumus</author_name>
  <author_url>https://blog.hatena.ne.jp/rasumus/</author_url>
  <blog_title>rokkonet</blog_title>
  <blog_url>https://rasumus.hatenablog.com/</blog_url>
  <categories>
    <anon>シェルスクリプト</anon>
  </categories>
  <description>2025 Mar. 20. #!/bin/bash # コマンドの引数を取得 SRC_DIR=&quot;${1%/}&quot; DEST_DIR=&quot;${2%/}&quot; # 引数のチェック if [ -z &quot;$SRC_DIR&quot; ] || [ -z &quot;$DEST_DIR&quot; ]; then echo &quot;Usage: $0 &lt;source_directory&gt; &lt;destination_directory&gt;&quot; &gt;&amp;2 exit 1 fi # 指定されたディレクトリが存在するかチェック if [ ! -d &quot;$SRC_DIR&quot; ] || [ ! -d &quot;$DEST_DIR&quot; ]; then echo &quot;Error: One…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frasumus.hatenablog.com%2Fentry%2F2025%2F03%2F20%2F162458&quot; title=&quot;あるディレクトリの内容を別のディレクトリに、ファイルを完全比較しつつコピーするbashスクリプト - rokkonet&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>2025-03-20 16:24:58</published>
  <title>あるディレクトリの内容を別のディレクトリに、ファイルを完全比較しつつコピーするbashスクリプト</title>
  <type>rich</type>
  <url>https://rasumus.hatenablog.com/entry/2025/03/20/162458</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
