
13 Jan
2014
13 Jan
'14
6:44 a.m.
On 13/01/2014 5:19 PM, Andrew McGlashan wrote:
This does it:
curl -Ss "https://googledrive.com/host/0B2KTxndVFSKuSjZKTDRaTlpJcmM/"|sed 's`<a href`\n<a href`g'|sed 's`</a>.*``; s`>.*$``; s`^<a href="`wget -c "https://googledrive.com`'|grep ^wget > a.a;chmod +x a.a; ./a.a;rm a.a
The following is neater and cleaner: #!/bin/bash ( curl -Ss "https://googledrive.com/host/0B2KTxndVFSKuSjZKTDRaTlpJcmM/"| \ sed 's`<a href`\n<a href`g'| \ grep '^<a href'| \ awk -F\" '{print "wget -c \"https://googledrive.com"$2"\""}' ) | tee y.y chmod +x y.y ./y.y rm y.y Cheers A.