SyntaxFix
Write A Post
Hire A Developer
Questions
You can use xargs which supports running many processes at a time. For your case it will be:
xargs
ls -1 /main/files | xargs -I {} -P 5 -n 1 rsync -avh /main/files/{} /main/filesTest/