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.
system
mujhe ek vishisht ekstansion (jaise, .tmp) ke saath sabhi filon ko khojane or hataane ke liye ek bash script den, jo ek nirdeshika ke bheetar ek nishchit sankhya main ek nishchit sankhya se adhik puraani he.
user
nishchit rup se.yahaan ek bash script he jo unke vistaar or umr ke aadhaar par filon ko hataa degi.

khojo .-name "*.log" -Mtime +30 -Exec rm -f {} \
assistant
<|system|>
</s>
<|user|>
mujhe ek vishisht ekstansion (jaise, .tmp) ke saath sabhi filon ko khojane or hataane ke liye ek bash script den, jo ek nirdeshika ke bheetar ek nishchit sankhya main ek nishchit sankhya se adhik puraani he.</s>
<|assistant|>
nishchit rup se.yahaan ek bash script he jo unke vistaar or umr ke aadhaar par filon ko hataa degi.

khojo .-name "*.log" -Mtime +30 -Exec rm -f {} \</s>
