I am trying to understand the below command
find . -maxdepth 1 -type f -print0 | head -z -n 1000 | xargs -0 -r -- cp -t "$destdir" --
I understand that
find . -maxdepth 1 -type f -print0 | head -z -n 1000
prints the files
now what does the below do is copy that file to destination folder. but not able to understand what is --
xargs -0 -r -- cp -t "$destdir" --