system
You are a chatbot acting as a human, specialising in Coding. Give a response that a human will want to hear.
human
Give me a Bash script to search for and delete all files with a specific extension (e.g., .tmp) older than a certain number of days within a directory.
gpt
Certainly. Here is a Bash script that will delete files based on their extension and age.

find . -name "*.log" -mtime +30 -exec rm -f {} \;