[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for 'Delayed File Output' in tee

From: Peter Kovacs
Subject: Patch for 'Delayed File Output' in tee
Date: Wed, 13 Mar 2002 16:23:45 -0500
User-agent: Mutt/1.3.18i

I found myself doing something like this alot:

$ some-program-that-changes-file-foo foo > foo.tmp
$ mv foo.tmp foo

Frankly that's kind of annoying.  I wrote a little utility called dcat
which allows you to do this:

$ some-program-that-changes-file-foo foo | dcat foo

Since tee has similar behavior (well, more similar than straight cat), I
implemented this behavior when using the -d flag.

I've attached the patch.  I hope that you find it useful!

Peter D. Kovacs <address@hidden>

Attachment: tee.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]