[Gllug] Treats for Windows refugees

Daniel P. Berrange dan at berrange.com
Mon Sep 5 13:00:48 UTC 2005


On Mon, Sep 05, 2005 at 12:53:34PM +0100, Bruce Richardson wrote:
> On Mon, Sep 05, 2005 at 10:51:31AM +0100, John wrote:
> > 
> > Piping the output of one command into another?
> 
> This was present even in DOS.  It's little used but it's there.

Ah, but can the input of the pipe be an arbitrary TCP connection

   $ cat </dev/tcp/time.nist.gov/13
   53618 05-09-05 19:46:47 50 0 0 945.1 UTC(NIST) * 


Or, how about you want to compare the list of files in two directories,
but without creating temporary files. Instead of having to do

  $ cd /some/dir && ls > ~/a.txt
  $ cd /other/dir && ls > ~/b.txt
  $ diff a.txt b.txt
  $ rm a.txt b.txt

You can just do

  $ diff <(cd /some/dir && ls) <(cd /other/dir && ls)

Regards,
Dan.
-- 
|=-            GPG key: http://www.berrange.com/~dan/gpgkey.txt       -=|
|=-       Perl modules: http://search.cpan.org/~danberr/              -=|
|=-           Projects: http://freshmeat.net/~danielpb/               -=|
|=-   berrange at redhat.com  -  Daniel Berrange  -  dan at berrange.com    -=|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20050905/0b13f547/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list