Download random folders

i have 1000+ folders in google drive. i want to download (move) any random folder.

basically I want to download all folder=>do some modifications and re-upload the folders. since the total number of folder file size is bigger than my local HDD, I want to download one by one folder and do the modification and next reupload. if I can download any random folder, I can do it automated.

hi,

this will output a random line from a text file.

rclone lsf remote: --absolute > list.txt
shuf -n 1 list.txt

why not just iterate over each dir in order?

rclone lsf remote: --absolute > list.txt
cat list.txt | xargs -I dir rclone ls "remote:dir"

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.