prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

Q: How to download batch file? #281

Open banghasan opened 7 years ago

banghasan commented 7 years ago

or

or any solution ?

Drezzler commented 7 years ago

Unfortunately , their is no such built in option , but you can use python or bash to read one id per line from a text file and loop through them to download each file.

Here is a sample code

#!/bin/bash
filename='file.txt'
filelines=`cat $filename`
echo Start
for line in $filelines ; do
    gdrive download $line
done