I want to move/copy 500 folders from one directory to another. Here, I am not choosing the files randomly but directories/folders.
I used the following command to do it, but i am able to mv only a few folders and not 500 folders are moved. Any suggestions on the following command?
ls | shuf -n 500 | xargs -i mv {} /path-folder/