2025-03-01から1ヶ月間の記事一覧
2025 Mar. 20. #!/bin/bash # コマンドの引数を取得 SRC_DIR="${1%/}" DEST_DIR="${2%/}" # 引数のチェック if [ -z "$SRC_DIR" ] || [ -z "$DEST_DIR" ]; then echo "Usage: $0 <source_directory> <destination_directory>" >&2 exit 1 fi # 指定されたディレクトリが存在するかチェック if [ ! -d "</destination_directory></source_directory>…