Created
January 19, 2021 13:34
-
-
Save majdiyassin20/a8a1e4a4c01f22ad29cda19bdbc05360 to your computer and use it in GitHub Desktop.
Download Shared Folder From Google Drive Using Terminal.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fileid="$1" | |
filename="$2" | |
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null | |
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} | |
## run chmod +x gdrive_folder_download.sh | |
## ./gdrive_folder_download.sh <fileID> <fileName> | |
## Donate BTC : 1Ndmbt6hZn7EEwZYMYKUJWQww1HPhj1uSN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment