From nobody Fri Dec 01 11:19:24 2023 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 4ShVvJ5K80z52TZW; Fri, 1 Dec 2023 11:19:24 +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 4ShVvJ4HkGz4VyL; Fri, 1 Dec 2023 11:19:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701429564; 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=hK9ldjL7Fb4czW/k8PB9EQYXRLTwkX6F0uJ9WsJrsfU=; b=uEzUF937pRaCawH8pTtobCgGIl9t+yZK/bqXlBxg3hj5c/RETkQVWrvw4uCZH8Cfs8VAkw u8t8q/nXhhxpsrGZ+XOull/aXNPC9XmyDp2pZ7uwdfD+/yhWrRT+h3VGErte/VJWPvILGR AUMJ9YS33LkDvrcSECLcTQCtEa0AWAJwuXzyRI+AL7lpL53m4OLSIeL6T93pH12Y8Z88LE vOReG0Fw0uOLOE6lI2HO/BIviwpru0MyNHNFlkTwt0geJFln5ZfLsbjwbE6UeKIINGfEU1 TdvvYWqZjXnaL010alZgybWS7XQpDhMm9qw2SIKpNL6YxKPmsdgFNcnOEm8/uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701429564; 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=hK9ldjL7Fb4czW/k8PB9EQYXRLTwkX6F0uJ9WsJrsfU=; b=C6+vriXh+gkOSvMb6e9mHx0OqXc8w/bTyrX92L7DrhcUko6BWxqy7XmE30iJihJ7lniEfR JZT1tIFBdHLm9Kr2c6Vv8r1betsw9Qce8xfGJXNR6wriNeIbKQVd88pLqg/cOQ3PuKVQMY b6I4clblxS/WZCaCfPgRKiPTTRQ7Vg6IL0+eD69UUeqBfMhOfhiwmadAbiRKVHIvrxmXC4 RfVCYKAkNWy9jhORNpfHycm0MLE30MwoDSlnFmMy7CmHmnK1salEHla3rdm3/Eo2KRt6N6 0UNjw8zyw8NkvhJI/LQxoIzjFP8A4Dpsk+FqueemjTOkf9TTcjTbOWKSyXSrjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701429564; a=rsa-sha256; cv=none; b=t/ps0QmoWFYbs9Dv6hh+TIOu82wHmP2opOJjwdqOMX7yymBE5V4HepBplve8CQ981ytDdz nD1BT44neEVx9WFZMc/21/CWTBzHJTm8ph6GEWL/lW1hRQ6v1WRVfBIB+MmOFOvjcHTncA QojxL5CYCJ9p6bJwX56YySX7cLohzohbQnXBekei9nczO1Vk8WjxzpxUTscXl24mqEkYZ0 suTzzEPENr0GkntFM4CTw9MBirGOlg6BGOupwL5JBtn4hB8bWULW094HdZ6I8RWJhQ6ZBH s8o+u08I2K//RWBO/N1Imn26TZYGea5RrclcfTyF6iBrg8gyXaSu3jRA+Nq5DQ== 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 4ShVvJ36KszX3R; Fri, 1 Dec 2023 11:19:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B1BJOa4028157; Fri, 1 Dec 2023 11:19:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B1BJOTi028154; Fri, 1 Dec 2023 11:19:24 GMT (envelope-from git) Date: Fri, 1 Dec 2023 11:19:24 GMT Message-Id: <202312011119.3B1BJOTi028154@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: b46a05cfa6a7 - stable/14 - tail.1: Add an example for +n 1 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: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b46a05cfa6a7194a63a0ef196c6914b3fd2109b6 Auto-Submitted: auto-generated The branch stable/14 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=b46a05cfa6a7194a63a0ef196c6914b3fd2109b6 commit b46a05cfa6a7194a63a0ef196c6914b3fd2109b6 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2023-11-28 16:52:11 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2023-12-01 11:19:04 +0000 tail.1: Add an example for +n 1 MFC after: 3 days Sponsored by: Klara, Inc. (cherry picked from commit 9f20787fe89e2a912a9e5dd2d3da56087722e8c2) --- usr.bin/tail/tail.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr.bin/tail/tail.1 b/usr.bin/tail/tail.1 index 810773b78d90..a76f754b18b9 100644 --- a/usr.bin/tail/tail.1 +++ b/usr.bin/tail/tail.1 @@ -157,7 +157,7 @@ arguments may also be specified with size suffixes supported by .Sh EXIT STATUS .Ex -std .Sh EXAMPLES -To display the last 500 lines of the file +Display the last 500 lines of the file .Ar foo : .Pp .Dl $ tail -n 500 foo @@ -167,6 +167,12 @@ Keep open, displaying to the standard output anything appended to the file: .Pp .Dl $ tail -F /var/log/messages +.Pp +Read +.Pa /var/log/messages +from the beginning and then follow the file as usual: +.Pp +.Dl $ tail -F -n +1 /var/log/messages .Sh SEE ALSO .Xr cat 1 , .Xr head 1 ,