Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pure zsh implementation of wget
- X-seq: zsh-users 16423
- From: Guido van Steen <gvsteen@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: pure zsh implementation of wget
- Date: Sat, 24 Sep 2011 14:11:13 -0700 (PDT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1316898673; bh=BNzJ3keu0o5AbOBOJ1Eqp3likuW7VmXtBreGYqdEvwo=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZeCr2jZJT1OxWuFgQx3ocdmRXuKOuoeJ8tmmAhjdtlUCga2q6j+DKKfHtQZpLhrb4sRYcxk0WOiHK9ABkbOQV2X+IC/pwwC0hw6bkD0rSy2iNCathG4F8oaHwLPBC8N9hC10M8HXZZ69UFghKKnNAcGaf/B71/Q1Y8s2MQdtIKo=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yZruIDT04HBDjEUnaS0vrm7Q+fgT4IWFCszSkGIDSRFNBqr+ffxjsDQStVp3JHOXBt6e2FdVYqRlhTLyYJQcZ0x1zXu+KR404L5v/7G3QRrqmvspo23TdxuMNZrEsrNklR5SBkYBAKa5nawysttsrKwhe9+8yMBCfSP0pqY8U7c=;
- In-reply-to: <1316895804.27230.YahooMailClassic@web65605.mail.ac4.yahoo.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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@xxxxxxxxx> wrote:
> From: Guido van Steen <gvsteen@xxxxxxxxx>
> Subject: Re: pure zsh implementation of wget
> To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
> Cc: zsh-users@xxxxxxx
> 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
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author