From nobody Sun Nov 06 08:00:40 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N4my11dRRz4hlNk; Sun, 6 Nov 2022 08:00:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N4my11336z3dyf; Sun, 6 Nov 2022 08:00:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667721641; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UsVXD9BDKtZIPtIhvkortHR5vXJ1H8pK55UsnruSzoE=; b=O5XRxRrJmMUfTGwbjUEGQqs7PoA6DDuPDJQPQEj3Bx5pkTkITD4vc08OhyETiPjS5fanA0 Kkoo561Y8IPBnmxXQs+KVSF9Q9IEti4w4qX7G9WWk9yLY0thUFZlZS7TOXq+K+3bGnRyn9 T3id+YAoYYivQ6Tr1qrat2xU/R8FlxpPenBlEumj/KmiEjUpouFxMfcfqI9ytN2eu86vZZ vqe0PjA4hQ5JW3O0PbIje6moynQrhSdSEZ+Lep9DUGzIV9VxIU7vVbc7cm9iGbbqbJs2GL OLpN1pQgUABlKV2ItAjBXggTDiwJqYh2KSusGBC9vsBJGjGkCQ8bBppMI9zr5g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N4my106Y9z1CWc; Sun, 6 Nov 2022 08:00:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A680eQA042478; Sun, 6 Nov 2022 08:00:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A680eUd042477; Sun, 6 Nov 2022 08:00:40 GMT (envelope-from git) Date: Sun, 6 Nov 2022 08:00:40 GMT Message-Id: <202211060800.2A680eUd042477@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Bergling Subject: git: 251ae6c76185 - stable/12 - tee(1): Add EXAMPLES section List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 251ae6c761858b9583c202e8e4ea28bc2cdd6966 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667721641; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UsVXD9BDKtZIPtIhvkortHR5vXJ1H8pK55UsnruSzoE=; b=AhKTG7BP19w92uEDhV387qFz5S8ZJUmRq/OkG94wEQZVnlBp7IQeyYnZLiD7C9tweX5E69 2SPIyya8tcztZzYuimcI0nqwS662H7XZOBpll4wvtE9anmkhIax5//JfmG4bDlGZAWLw/2 DueWWz8rGESvFbW44WZbCciyUl79HNjkSWDbYEoVk6nywSQK+nXlwWwSJWVuGMEBPFQ0MU ESF5LIlTTgNMUzhXjJwOAAPggZyzJnF+1vZrZtWHJxrfAQ82Uzd7itzRJWd3kI52BLnX6M UlVdd6q3lOxkdgGDRL7w1Y3TAp9MyxyGCVgEXxvq7wi0+/+7NiZUG2SHA0nfCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667721641; a=rsa-sha256; cv=none; b=lykU/uRfqlSezNqnBi69vBUv5RyABHPs4gSydRjcP4tvz2XvtGlcX8Q875ak93R+WR86ot I4MUAcBpAzlUm4+gL9ohGfbZj5SaMQiUsg5HTS70rR2enHGyhfDcxfUWgqhirH8haMM3u4 KTwYszwT1vi/6INRRLu/O0QkAkluaZL2yGziliTtvf5ng28Rd7JmSDaTQfh+YJ6YATvUKI h6L5lLirp5kn/chrvTvoGLXsCNowOct4F2r1AJbjORjtjU1qGeZasqR8IhgBe9IMZVJDK/ 1ivvxdzSbaK4h7lQ7sdOfE3vrmOVXEDZ59fhLGvcxew19YsxHLNlCXG0biMxrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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 AuthorDate: 2020-06-18 10:48:37 +0000 Commit: Gordon Bergling 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