Google Drive
Make sure the link is shared, and it will look something like this:
https://drive.google.com/open?id=FILEID&authuser=0
Then, copy that FILEID and use it like this
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME.EXT
DropBox
When you share a file in Dropbox, the link will look like
https://www.dropbox.com/s/xvuu7a8syeaur0n/FILENAME.EXT?dl=0
replace dl=0 to dl=1 then use the following command to download using wget from Dropbox
wget -O FILENAME.EXT "https://www.dropbox.com/s/xvuu7a8syeaur0n/FILENAME.EXT?dl=1"
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Wednesday, May 23, 2018
Friday, February 11, 2011
Last day of the month, number of days in a month Linux shell bash script, date command in Unix
Number of days in a month is not inbuilt command in linux, In order to get the number of days in a month, we create a new date string of the first day of the next month and then go back to previous day which gives us the last day or number of days in the current month.
Posted by
vicky
at
8:47 AM
Subscribe to:
Posts (Atom)