From nobody Fri Dec 01 11:20:41 2023 X-Original-To: dev-commits-src-branches@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 4ShVwn59HFz52Tfs; Fri, 1 Dec 2023 11:20: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 4ShVwn4T74z4WQF; Fri, 1 Dec 2023 11:20:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701429641; 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=wVkbSzwG66nwiIAN40uujqeoSbMSQZRgDca4WlBeeW4=; b=VTPsuc2WTtUJcBQ2XGooIlw7857L+guVBizfRt+gqJHwKSci8WwPTb5gAjLdHSEdKOfgJj bzGNbVfDjpcqeLqZdjEY51+YwbrzmKWYgiunVhidJbGxMUDC3PXF8GLA+AiVkC4ACJqFjE tQigRm19WEdcYMXhmwLhEztWm9W24x5/lv+EClz7x/wwMVDgx82DRccBvYFpkoCj7kus9Y 2KH5p8JICgy2O/wKhLaBpNJSsDeTygwr50TkXb2cgp24YYCNf+uWyDm8sIzHPLWH3sjwBE mMtqnxDxPBp5Ls1K7xiumvEFXxdU8hWhV8AKZ4DZ85jaN8GQpi1jb2Qte9UM6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701429641; 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=wVkbSzwG66nwiIAN40uujqeoSbMSQZRgDca4WlBeeW4=; b=sZY3BqpSFi9dV3XBIvmsIUwUTkVXoHTsiKqYWrQmORViZhkxAHuOz91SXmAjCPmXS+ZUeP Hl6+ozbZ+RKBlU0hYAQey7cCKv4rx02vhTxoUeLvYgfo6EAWj3p7Lzen/YzfUcD/l9Clgy JiKJVBJVRxPofrRm3s2++PSVz0CYGHzHfM1p5Nk0GwnUL8pCyzjmuJ/VSmeou+BQyz/+4A dXvs+CZ4qJTtDB3mklDn863dAq+dcFzbtY47GqqJHRN1pTfmL5yi1Q/NmiMFUADO/AQKnt xrv9/emwxnPOI3xKtUIPZdHLh3+EMfqIIMWkfeXL2dYiPBi+0lMLmzBlJ+fG/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701429641; a=rsa-sha256; cv=none; b=DQyCwT1Xdf0/ufgoIxL4LDtgzuYSNBNfx06vWMFfTH4nfXQFmhdNOTtg/PKAM1OUiecBIZ MSewR4wVAt5kZ36x258jE+3gmnNKOu9wwxteOF6P1SRQAxXTE3gi6AtrNWzCguHqAN/WQb wGRymbc70wa56cJvz3/wohNJ1/s6wnKoUIqukWs5Jw53H8/u+SbP/7Byeuj+rb4ldt/gaJ 6vBfLaPnWSG2UwGPMiWV5Xt/Y4OuvcuYRV7UM8O2ac4pqYlzHxRAKfqnyFzfcL5vwZ0IB/ FORzoc+tB6pLZ736Ld2tRHNiNBFoxQyciGGW5ToTNenV4WeKJ4w6ymjsFRiKaw== 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 4ShVwn3WW3zX6X; Fri, 1 Dec 2023 11:20:41 +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 3B1BKfVK036954; Fri, 1 Dec 2023 11:20:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B1BKfuU036951; Fri, 1 Dec 2023 11:20:41 GMT (envelope-from git) Date: Fri, 1 Dec 2023 11:20:41 GMT Message-Id: <202312011120.3B1BKfuU036951@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: 29cdffb68a58 - stable/13 - tail.1: Add an example for +n 1 List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/13 X-Git-Reftype: branch X-Git-Commit: 29cdffb68a5845ec597742c8b2238b9ff1643867 Auto-Submitted: auto-generated The branch stable/13 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=29cdffb68a5845ec597742c8b2238b9ff1643867 commit 29cdffb68a5845ec597742c8b2238b9ff1643867 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:20:25 +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 25fa26655ac0..19c4046b6683 100644 --- a/usr.bin/tail/tail.1 +++ b/usr.bin/tail/tail.1 @@ -147,7 +147,7 @@ flag is specified. .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 @@ -157,6 +157,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 ,