Skip to content

Instantly share code, notes, and snippets.

View amjltc295's full-sized avatar

Ya-Liang Chang (Allen) amjltc295

View GitHub Profile
@amjltc295
amjltc295 / gd-drive-file-download.sh
Created September 17, 2019 08:20 — forked from vithalreddy/gd-drive-file-download.sh
Shell Script To Download Google Drive Files from terminal
#!/bin/bash
read -p "Enter File Id: " fileid
read -e -p "Enter File Dir: " "path_to_download_dir" dir #replce with your download dir path ~/Downloads
cd ~/$dir
echo "File will be downloaded in dir: ~/{$dir}"
curl -c ./$fileid -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null