find /full/path/dir -name '*.txt' -exec /bin/rm {} \;
Fine in a shell, but pop it in a sh script along with some similar lines, to get it to run nightly from a cronjob, and it reports:
find: missing argument to `-exec'
on everything. I've tried backslashes and quote-marks in possibly every combination. How can I make this work?