find /log/ -mtime -31 -type f -name ""*data.txt"" -printf ""cp -p %p /Backup/%Td/\n"" | sh
I am trying to set up this command in a cron job and it's complaining about unknown predicate -p
. Not really a cron issue, looks like a shell-scripting problem.
How can I fix this? Quoting -p
doesn't help.