zsh-users
 help / color / mirror / code / Atom feed
From: Michal Politowski <mpol@charybda.icm.edu.pl>
To: zsh-users@sunsite.dk
Subject: Re: RFT: Request for a trick :O)
Date: Sat, 6 Aug 2005 09:50:40 +0200	[thread overview]
Message-ID: <20050806075040.GA7698@Amber.lab.icm.edu.pl> (raw)
In-Reply-To: <20050806.065638.92586082.Meino.Cramer@gmx.de>

On Sat,  6 Aug 2005 06:56:38 +0200, Meino Christian Cramer wrote:
[...]
> 	 cmp < `7z x -so foo.7z` < `7z x -so bar.7z`
> 
>  may work I thought...but it doesnt (the assumption was totally
>  wrong)...  ( "7z x -so <file>.7z" means "unpack <file>.7z to stdout)
> 
>  But...may be someone else knows a tricky way to prevent temporary
>  files to compare the (single file) contents of two archives in one
>  go???

Almost there. Read about process substitution in the documentation.
It looks like <(command), >(command) and =(command)
so in your case
cmp <(7z x -so foo.7z) <(7z x -so bar.7z)
should work.

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.


  reply	other threads:[~2005-08-06  8:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-06  4:56 Meino Christian Cramer
2005-08-06  7:50 ` Michal Politowski [this message]
2005-08-06  8:35   ` Meino Christian Cramer
2005-08-08 10:04     ` Peter Stephenson
2005-08-08 10:35       ` Stephane Chazelas
2005-08-08 10:41         ` Peter Stephenson
2005-08-08 15:44           ` Meino Christian Cramer
2005-08-08 16:02             ` Peter Stephenson
2005-08-08 16:34               ` Meino Christian Cramer

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=20050806075040.GA7698@Amber.lab.icm.edu.pl \
    --to=mpol@charybda.icm.edu.pl \
    --cc=zsh-users@sunsite.dk \
    /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).