I'm wondering if it's possible to pass
find results to an
rclone delete command.
For example, I have the following command to list certain files:
find ./ -name 'search_term*' -type f ! -newer /tmp/mytime
This finds files in the current folder with a name including
search_term that's older than a specified file. Works great.
When I add
| xargs rm -rf to delete those files, the operation just hangs forever.
So I wonder if I could pass the results to an
rclone delete command, like this:
find ./ -name 'search_term*' -type f ! -newer /tmp/mytime | rclone delete remote:
where the remote path(s) are the results returned from the find command.