[Linux] find コマンドで指定の時間より前のファイルを消す方法

Summary

# find ./target_path -type f ! -newerwt "2023-09-04 00:00:00" -ls
# find ./target_path -type f ! -newerwt "2023-09-04 00:00:00" -delete

返信を残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です