[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#286938: diff: could support comparison among remote files (fwd)
From: |
Andreas Schwab |
Subject: |
Re: Bug#286938: diff: could support comparison among remote files (fwd) |
Date: |
Wed, 05 Jan 2005 21:09:59 +0100 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Santiago Vila <address@hidden> writes:
> It will be nice to be able to compare through a remote shell with a
> sintax typical to ssh or rsync, something like
>
> diff file.txt mycomputer.mynet.com:/tmp/file.txt
>
> to avoid using
> ssh mycomp.mynet.com cat /tmp/file.txt | diff file.txt -
With GNU bash:
diff file.txt <(ssh mycomp.mynet.com cat /tmp/file.txt)
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."