Created
March 26, 2020 00:55
-
-
Save sitemapxml/d99f2cc9ce79ec1ca003e42363adfd1c to your computer and use it in GitHub Desktop.
Preuzimanje fajlova sa google drive-a
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="" | |
filename="file.zip" | |
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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment