linux findコマンドで指定した日付の範囲に更新されたファイルを mv コマンドで移動する
例: 2025年6月1日~2025年6月10日に更新されたファイルを移動する
find /path/to/search -type f -newermt "2025-06-01" ! -newermt "2025-06-11" -exec mv {} /path/to/destination/ \;
もし、特定のディレクトリの 直下のファイルのみ(サブディレクトリを含めたくない)を対象にする場合は、-maxdepth 1 を追加してください。
find /home/user/documents -maxdepth 1 -type f -newermt "2025-06-01" ! -newermt "2025-06-11" -exec mv {} /home/user/backup/ \;
アイキャッチのサイズ
1000×600 540×290 くらい
convert input.jpg -gravity Center -crop 800x600+0+0 output.jpg
そのディレクトリだけを対象にする基本構文
find . -maxdepth 1 -type f


