Passing result of shuf to rsync

hancooper hancooper at
Fri Sep 17 23:11:54 UTC 2021

I am trying to pass filename results that have been shuffled, then pass the file to rsync.
Not quite sure whether to use --files-from=- or some other way.

shuf -n "$nf" -e ${dpath}/${incl} |
rsync -av --update --files-from=- . "$dst"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list