git: 251ae6c76185 - stable/12 - tee(1): Add EXAMPLES section
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Nov 2022 08:00:40 UTC
The branch stable/12 has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=251ae6c761858b9583c202e8e4ea28bc2cdd6966 commit 251ae6c761858b9583c202e8e4ea28bc2cdd6966 Author: Fernando ApesteguĂa <fernape@FreeBSD.org> AuthorDate: 2020-06-18 10:48:37 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2022-11-06 07:58:35 +0000 tee(1): Add EXAMPLES section Probably the simplest one ever. Approved by: gbe@, 0mp@ Differential Revision: https://reviews.freebsd.org/D25206 (cherry picked from commit d70bfedd087056716cbdb088c09709cea9251061) --- usr.bin/tee/tee.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr.bin/tee/tee.1 b/usr.bin/tee/tee.1 index 546c489377c9..003f487c373e 100644 --- a/usr.bin/tee/tee.1 +++ b/usr.bin/tee/tee.1 @@ -31,7 +31,7 @@ .\" @(#)tee.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd November 13, 2007 +.Dd June 18, 2020 .Dt TEE 1 .Os .Sh NAME @@ -74,6 +74,12 @@ except in the event of the option. .Sh EXIT STATUS .Ex -std +.Sh EXAMPLES +Send echoed message both to stdout and to the greetings file: +.Bd -literal -offset indent +$ echo "Hello" | tee greetings.txt +Hello +.Ed .Sh STANDARDS The .Nm