From 93b625d8288ff9ec522460dac489a170ef130d8c Mon Sep 17 00:00:00 2001 From: joeyh Date: Tue, 14 Mar 2006 23:08:19 +0000 Subject: [PATCH] * Add pee (pipe tee) contributed by Miek Gieben. --- Makefile | 11 +++++++---- README | 2 ++ debian/changelog | 6 ++++++ debian/control | 1 + debian/copyright | 2 ++ pee | Bin 0 -> 11447 bytes pee.1 | 11 +++++++++++ 7 files changed, 29 insertions(+), 4 deletions(-) create mode 100755 pee create mode 100644 pee.1 diff --git a/Makefile b/Makefile index a4527e0..7b96a92 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -BINS=isutf8 ifdata +BINS=isutf8 ifdata pee PERLSCRIPTS=vidir vipe ts combine sponge -MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 +MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 pee.1 CFLAGS=-O2 -g -Wall all: $(BINS) $(MANS) @@ -20,10 +20,13 @@ check: isutf8 ./check-isutf8 isutf8.1: isutf8.docbook - docbook2x-man isutf8.docbook + docbook2x-man $< ifdata.1: ifdata.docbook - docbook2x-man ifdata.docbook + docbook2x-man $< + +pee.1: pee.docbook + docbook2x-man $< %.1: % pod2man --center=" " --release="moreutils" $< > $@; diff --git a/README b/README index 061c31f..1f6c287 100644 --- a/README +++ b/README @@ -15,6 +15,8 @@ combine combine the lines in two files using boolean operations ifdata get network interface info without parsing ifconfig output +pee + tee standard input to pipes Your suggestions of additional tools to add to this collection are diff --git a/debian/changelog b/debian/changelog index f9b2baf..2831c75 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +moreutils (0.7) UNRELEASED; urgency=low + + * Add pee (pipe tee) contributed by Miek Gieben. + + -- Joey Hess Tue, 14 Mar 2006 18:07:46 -0500 + moreutils (0.6) unstable; urgency=low * Revert to perl sponge since the C one corrupts larger files. diff --git a/debian/control b/debian/control index a49a3e1..176a10e 100644 --- a/debian/control +++ b/debian/control @@ -20,3 +20,4 @@ Description: additional unix utilities - vipe: insert a text editor into a pipe - combine: combine the lines in two files using boolean operations - ifdata: get network interface info without parsing ifconfig output + - pee: tee standard input to pipes diff --git a/debian/copyright b/debian/copyright index 455e406..dba6c9e 100644 --- a/debian/copyright +++ b/debian/copyright @@ -30,6 +30,8 @@ ifdata is Copyright (C) 2002 by Benjamin BAYART, under the terms of the GPL. It was originally called ifcfg and has a web page here: http://edgard.dyn.fdn.fr/developpements/ifcfg.shtml +pee is Copyright (c) Miek Gieben, 2006, under the terms of the GPL. + Everything else is copyright 2006 by Joey Hess, under the terms of GPL. The full text of the GNU GPL can be found in /usr/share/common-licenses/GPL on Debian systems. diff --git a/pee b/pee new file mode 100755 index 0000000000000000000000000000000000000000..b4874b7539c7b061209769ca53e87d7afd825384 GIT binary patch literal 11447 zcmcgy3v^t?d7k@N``TJtFTWDpu(D+%_n=)%R*a2#*p@6?L}0LNAQ*bR+P%^)thAeb z7@OE9wuJyyQ4t}W1WFs+kj5>fal#`mnBvwP3TaM4ogSK|Jq_&vB8p4w1}JSzx8FB& zN4k=oS0SA}voqh!|C*Wq&YhV%pV`paZWxBp!4#GtT03YvElAsbOVzZ9h?p)KM7^jJ z(@?~^mVKZ>dHgBL zXdxSIR=iLxZQpp+Hpxpn7#XVlC;|S$h?N@n>C6D0jlARISxDJul>dtY?brIyJdB45 z=n7GRNc&|Us^UriH~Od>X$|5fQ}9(juJ`Ld?&CTiZ}Rc5kJtJ5$1sHQ5rEGmUcNOGFBH6jaNXX%Y`6Qv!5?ZOq*V-3{fQ_9U>s#ICXw!IZIn6ia&w_8Loc=d_FJQ{?(tcB&PQ#Tf@dtic zmBgm_Dup5JL4QsIF~=nY=i_*U;5_W-5FGZiNT;JCN14LWKF<`6`9-D}$OoCi!5(4? zXM30_obV7+IQOGW;fRNs!oeSB3Vqv#UK=>+jJ*RB#yTN?>re&!G#D^uOg{cVfLlV={R0Hv-#I!iI zoOqwav^=$nI43b%kXlQ;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cnNR;cpZ+Rf z+Nb4j1AZU+iEGTT$N>Lcp#D?9y!N5(KLDHz^!Gi$4EnCumw~lC@J?~quP03e@wq8j z#JkgtatG5T&T*hO{$0;MkYmCf2~M3p*ipwhzjP&Vk1TNQj7M^XVyUMG+FZAF>*g(P zXGhmo+(vWVwn^xU*6}KAadH{2=p~~qEh|@u920Dw-DKA7&1Add8CPzZ+<0jhZlz(n z<0eaeeY>@S4Og{I$k(8K%epH!xEfKJ&QC~{`!Ol?L+%(JdZ}|hx9yWxt-G?L6}EB= zuzkzNcf0ENBv2raU_ryN3es%s+`N8Wr@Ohmy=%i(ck8{ zZ{aPM7yg3S?a8^RTlKBKV2!#VI8lNV5;s}Mx~X`7GK13 vqf=L|S{d#2if%697E`7ETcX{&gd8e)E;Wf~@(oCJIdT$#8`S&DuWJ4;GNKpL literal 0 HcmV?d00001 diff --git a/pee.1 b/pee.1 new file mode 100644 index 0000000..019488f --- /dev/null +++ b/pee.1 @@ -0,0 +1,11 @@ +.TH pee 1 2006\-03\-14 +.SH NAME +pee \- tee standard input to pipes +.SH SYNOPSIS +\fBpee\fR [\fB"command"\fR\&...] +.SH DESCRIPTION +pee is like tee +but for pipes. Each command is run and standard input is +copied into it, as well as being sent to stdout. +.SH "SEE ALSO" +\fBtee\fR(1) -- 2.39.5