Need wget help for download a script
Hi All, Can someone tell me how I can download this script https://git.fedorahosted.org/cgit/livecd/tree/tools/livecd-iso-to-disk.sh with wget and just get the script, not all the numbers and HTML stuff. This is what I have come up with. Seems there should be a better way. # wget https://git.fedorahosted.org/cgit/livecd/tree/tools/livecd-iso-to-disk.sh -O- | html2text -nobs -style pretty -width 132 | cut -c10- | more Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~
Re: Need wget help for download a script
On 06/02/2014 02:59 PM, ToddAndMargo wrote: > Hi All, > > Can someone tell me how I can download this script > > https://git.fedorahosted.org/cgit/livecd/tree/tools/livecd-iso-to-disk.sh > > with wget and just get the script, not all the numbers > and HTML stuff. > > This is what I have come up with. Seems there should be a better > way. > > # wget > https://git.fedorahosted.org/cgit/livecd/tree/tools/livecd-iso-to-disk.sh -O- > | html2text -nobs -style pretty -width 132 | cut -c10- | more > > Many thanks, > -T > > The top of the page has a link to a plain text version. blob: bca3286773535ad900f4761e6e421440add41273 (plain) <--- https://git.fedorahosted.org/cgit/livecd/plain/tools/livecd-iso-to-disk.sh Brandon Vincent
Re: Need wget help for download a script
you could also get it from the livecd image. On Mon, Jun 2, 2014 at 6:01 PM, Brandon Vincent wrote: > On 06/02/2014 02:59 PM, ToddAndMargo wrote: > > Hi All, > > > > Can someone tell me how I can download this script > > > > > https://git.fedorahosted.org/cgit/livecd/tree/tools/livecd-iso-to-disk.sh > > > > with wget and just get the script, not all the numbers > > and HTML stuff. > > > > This is what I have come up with. Seems there should be a better > > way. > > > > # wget > > > https://git.fedorahosted.org/cgit/livecd/tree/tools/livecd-iso-to-disk.sh > -O- > > | html2text -nobs -style pretty -width 132 | cut -c10- | more > > > > Many thanks, > > -T > > > > > > The top of the page has a link to a plain text version. > > blob: bca3286773535ad900f4761e6e421440add41273 (plain) <--- > > https://git.fedorahosted.org/cgit/livecd/plain/tools/livecd-iso-to-disk.sh > > Brandon Vincent > -- Thanks, Jamie Duncan @jamieeduncan
Re: Need wget help for download a script
On 06/02/2014 03:01 PM, Brandon Vincent wrote: On 06/02/2014 02:59 PM, ToddAndMargo wrote: Hi All, Can someone tell me how I can download this script https://git.fedorahosted.org/cgit/livecd/tree/tools/livecd-iso-to-disk.sh with wget and just get the script, not all the numbers and HTML stuff. This is what I have come up with. Seems there should be a better way. # wget https://git.fedorahosted.org/cgit/livecd/tree/tools/livecd-iso-to-disk.sh -O- | html2text -nobs -style pretty -width 132 | cut -c10- | more Many thanks, -T The top of the page has a link to a plain text version. blob: bca3286773535ad900f4761e6e421440add41273 (plain) <--- https://git.fedorahosted.org/cgit/livecd/plain/tools/livecd-iso-to-disk.sh Brandon Vincent Hi Brandon, I tried that. I got an HTML page. :'( -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~
Re: Need wget help for download a script
On 06/02/2014 03:12 PM, ToddAndMargo wrote: > Hi Brandon, > >I tried that. I got an HTML page. :'( > > -T I just tried fetching that page as the sole wget parameter with no switches and it downloaded as a regular text file. Can you post an example of where it returns HTML? Brandon Vincent
Re: Need wget help for download a script
On 06/02/2014 03:15 PM, Brandon Vincent wrote: On 06/02/2014 03:12 PM, ToddAndMargo wrote: Hi Brandon, I tried that. I got an HTML page. :'( -T I just tried fetching that page as the sole wget parameter with no switches and it downloaded as a regular text file. Can you post an example of where it returns HTML? Brandon Vincent Hi Brandon, In Firefox, I right clicked on the link, saved as eraseme.sh. You get the picture. -T # more eraseme.sh http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> livecd - Fedora Live CD Tools href='https://git.fedorahosted.org/cgit/livecd/atom/tools/livecd-iso-to-disk.sh?h=rhel6-branch' type='application/atom+xml'/> -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~
Re: Need wget help for download a script
On 06/02/2014 03:20 PM, ToddAndMargo wrote: On 06/02/2014 03:15 PM, Brandon Vincent wrote: On 06/02/2014 03:12 PM, ToddAndMargo wrote: Hi Brandon, I tried that. I got an HTML page. :'( -T I just tried fetching that page as the sole wget parameter with no switches and it downloaded as a regular text file. Can you post an example of where it returns HTML? Brandon Vincent Hi Brandon, In Firefox, I right clicked on the link, saved as eraseme.sh. You get the picture. -T # more eraseme.sh http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> livecd - Fedora Live CD Tools I did get the script with the long wget command. I did have to go in with vi and whack off a bunch of stray line on the top. And, although the script does create a Live USB, the stick won't boot. So, poop. The current version does boot, but the persistence, although there, does not work. -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~
Re: Need wget help for download a script
On 06/02/2014 03:34 PM, Chris Schanzle wrote: On 06/02/2014 06:26 PM, ToddAndMargo wrote: On 06/02/2014 03:20 PM, ToddAndMargo wrote: On 06/02/2014 03:15 PM, Brandon Vincent wrote: On 06/02/2014 03:12 PM, ToddAndMargo wrote: Hi Brandon, I tried that. I got an HTML page. :'( -T I just tried fetching that page as the sole wget parameter with no switches and it downloaded as a regular text file. Can you post an example of where it returns HTML? Brandon Vincent Hi Brandon, In Firefox, I right clicked on the link, saved as eraseme.sh. You get the picture. -T # more eraseme.sh http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> livecd - Fedora Live CD Tools I did get the script with the long wget command. I did have to go in with vi and whack off a bunch of stray line on the top. Baffling. You must have mis-clicked on the link, and selected "Save page as" rather than "Save link as". Alternatively, left-click on the Plain page, see just all the plain text, then right-click "Save page as." Similarly, with wget, simply: $ wget https://git.fedorahosted.org/cgit/livecd/plain/tools/livecd-iso-to-disk.sh --2014-06-02 18:30:07-- https://git.fedorahosted.org/cgit/livecd/plain/tools/livecd-iso-to-disk.sh Resolving git.fedorahosted.org... 140.211.169.199 Connecting to git.fedorahosted.org|140.211.169.199|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 49361 (48K) [text/plain] Saving to: “livecd-iso-to-disk.sh” 100%[>] 49,361 254K/s in 0.2s 2014-06-02 18:30:07 (254 KB/s) - “livecd-iso-to-disk.sh” saved [49361/49361] $ less livecd-iso-to-disk.sh shows a plain text file. $ file livecd-iso-to-disk.sh livecd-iso-to-disk.sh: Bourne-Again shell script text executable Please try again for a sanity check for all those who have experiences different from yours! Hi Chris, Made me look. It wouldn't be the first time. Tried it again to make sure. No symptom change. I was linking on "Save Link as". I am running Firefox 29.0.1 from the Mozilla ftp site binaries. Anyway, I was just wondering if anyone had come up with a better wget run line. Guess I am asking "theoretical question". The script doesn't work anyway. -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~