Score:1

extract full path FIND with special character handling

in flag

Executing a comand like:

find /some_path -mtime -3 -type f -name "*.txt"

the out is something like:

/some_path/file 1.txt
/some_path/file2.txt

If I include this output in rsync with something like:

rsync --progress --protect-args --files-from=<(find /source_path -mtime -3 -type f -name "*.txt") /source_path /dest_path

The command will make the copy just for file 2.txt for the first one the output will be failed: No such file or directory (2)

The problem is related of course withe the space in the name, how can i solve it?

I need FIND to use -mtime -3

Score:0
by flag

Just use -print0 option in find and the --from0 option in rsync for the filename with special characters.

For your command it would be -print0 option in find and the --from0 option in rsync

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.