zsh-users
 help / color / mirror / code / Atom feed
From: Guido van Steen <gvsteen@yahoo.com>
To: zsh-users@zsh.org
Subject: Re: pure zsh implementation of wget
Date: Sat, 24 Sep 2011 14:11:13 -0700 (PDT)	[thread overview]
Message-ID: <1316898673.98335.YahooMailClassic@web65602.mail.ac4.yahoo.com> (raw)
In-Reply-To: <1316895804.27230.YahooMailClassic@web65605.mail.ac4.yahoo.com>

Hi, 

Well, sorry for answering my own question: I just thought of using tail, and then getting rid of the superfluous <eof> through head. 

% tail dhcp3-client_4.1.1-P1-15+squeeze3_all.deb -c 25465 > dhcp3-client_4.1.1-P1-15+squeeze3_all.deb 

% head dhcp3-client_4.1.1-P1-15+squeeze3_all.deb -c -1 > dhcp3-client_4.1.1-P1-15+squeeze3_all.deb

It is a bit ugly but it seems to work. 

Best wishes, 

Guido 

--- On Sun, 25/9/11, Guido van Steen <gvsteen@yahoo.com> wrote:

> From: Guido van Steen <gvsteen@yahoo.com>
> Subject: Re: pure zsh implementation of wget
> To: "Bart Schaefer" <schaefer@brasslantern.com>
> Cc: zsh-users@zsh.org
> Date: Sunday, 25 September, 2011, 3:23 AM
> Thank you, Bart! 
> 
> Now hopefully my last question: is there an easy way to get
> rid of the first part of the file, which starts with: 
> 
> HTTP/1.1 200 OK
> 
> Date: Sat, 24 Sep 2011 20:06:24 GMT
> 
> Server: Apache
> 
> Last-Modified: Thu, 11 Aug 2011 05:26:04 GMT
> 
> ETag: "6378-4aa340878d300"
> 
> Accept-Ranges: bytes
> 
> Content-Length: 25464
> 
> Connection: close
> 
> Content-Type: application/x-debian-package
> 
> 
> 
> The downloaded file should start with: 
> 
> !<arch>
> debian-binary   1312914433  0 
>    0     100644 
> 4         `
> 2.0
> control.tar.gz  1312914433  0 
>    0     100644 
> 911       `
> ...
> ...  
> 
> Best wishes, 
> 
> Guido
>


  reply	other threads:[~2011-09-24 21:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22 21:06 Guido van Steen
2011-09-22 21:50 ` Mikael Magnusson
2011-09-23  5:23   ` Guido van Steen
2011-09-23  6:57     ` Mikael Magnusson
2011-09-23  7:13       ` Guido van Steen
2011-09-23 12:06         ` Guillaume Brunerie
2011-09-23 12:12           ` İsmail Dönmez
2011-09-23  7:01     ` Bart Schaefer
2011-09-23  7:16       ` Guido van Steen
2011-09-27  9:02     ` Oliver Kiddle
2011-09-24 16:49   ` Guido van Steen
2011-09-24 17:58     ` Bart Schaefer
2011-09-24 20:23       ` Guido van Steen
2011-09-24 21:11         ` Guido van Steen [this message]
2011-09-24 21:42         ` Bart Schaefer
2011-09-22 21:53 ` Stephane Bortzmeyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1316898673.98335.YahooMailClassic@web65602.mail.ac4.yahoo.com \
    --to=gvsteen@yahoo.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).