
find:ai:dd0b8
delete .sql files older than 1 week
$ find ${filename}s -name '*.sql' -type f -mtime +7 -delete
try on your machine
This command will find all .sql files in the specified directory (/path/to/files
) older than 1 week (based on modification time) and delete them.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- delete .sql files older than 1 week?