From nobody Tue Nov 28 16:57:00 2023 X-Original-To: dev-commits-src-main@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 4SfpXD4f2jz52DWc; Tue, 28 Nov 2023 16:57:00 +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 4SfpXD3lk3z3YSZ; Tue, 28 Nov 2023 16:57:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701190620; 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=YDNc7YgMbAfWfNCYOyFhOFJJi3viloeH01SnhE0IPVI=; b=RPnHmI0IEPMq/KZ/NtRGsRMjVzedIhnJUYk/5T9m55+YmEaZjrKu9NEI82Lf7aHUEh8WMK /qcE2SuHxmFqL8/gvSZyHhm1KuXyUYUU8ZXIJbhcNDwhPbSIL+1FiP5qo/TzE61DZ/wzVf 9Kbv7bIpWDv87EdjxotHM63k8qmXRFEDSnuBVy8lh/0SSEJ2ORg1oHel4bukpa/wOHGYuy +FyQrjSwnVWnypqwjSPl9KBhgP0fMeXo5vzPo83Zpdffiq5uGdkCfZyR2E9B75DvaAUeQc sHCpzBxCckIeJ0mtyhtvjBkg5YZomhD0RK+F1kbBuh9NmCq0d1K+XsEUyibcRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701190620; 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=YDNc7YgMbAfWfNCYOyFhOFJJi3viloeH01SnhE0IPVI=; b=CC1Mdbtj9voIlrd5vGY08QgLV/zDfL5pHk5/l1KPpRZQp7BEcqnDdhgj7wrbSweIiv6MQj NVPhovA6V8E63aCIRsvk6wMlK0sisgDQU5cfp9gTeH68lJ5IdKSqHTgj3BAGSCY55P4S0D G1rvsuuV7Ie9vKAZct9p4VnXonMjFd4GPGgzpPLI+c71O44PgUR8nYmaUHgZJEfi5d95+5 Ee+vfe//pk/hcnQADtf0dYn8DX7jxYeQQAZAXmcJbPrgxoQgCVITUXFJnOpDoyb5Bsqw1q x3kgLvirFbJ5eBzw1GTY/PXLAmQ9zHOsQOifyPLD0VRpoDyWTUAoh8B66wBV8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701190620; a=rsa-sha256; cv=none; b=FERgV6+Q4v76qSK2UE0Wya/9mCY9P9yvTuBFXt2deIJn5Z2VRsDlvqsDr9cxlU6G+uVOBU E2I7KnglJ2U6Wzxkl/e3/fDT3zNCwQHERFGcRoa0OMg/BgZQ8SRLd6AMCOxd4umRaCx1mO VSZdhjP0mDwlm52IFuOX1Qc0AIrj1IStEeoEBTAYi8sflGmR6eDSaSA249I8rLZudXlkIl RPezfZzN/gaZZVr45BZmN04ADq5j7ak5830dnK+zrp4EfUdjy7mCDgjQBd7IBhLYI5T4DI LJ1m4ulMDEcMTVoAkjan/wRSOLPbJTjWdD3R1RE/rkt+L2MEEiJnD/k70zoMqw== 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 4SfpXD2lYgzVhC; Tue, 28 Nov 2023 16:57:00 +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 3ASGv0LM061461; Tue, 28 Nov 2023 16:57:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ASGv0MY061458; Tue, 28 Nov 2023 16:57:00 GMT (envelope-from git) Date: Tue, 28 Nov 2023 16:57:00 GMT Message-Id: <202311281657.3ASGv0MY061458@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 9f20787fe89e - main - tail.1: Add an example for +n 1 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 9f20787fe89e2a912a9e5dd2d3da56087722e8c2 Auto-Submitted: auto-generated The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=9f20787fe89e2a912a9e5dd2d3da56087722e8c2 commit 9f20787fe89e2a912a9e5dd2d3da56087722e8c2 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2023-11-28 16:52:11 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2023-11-28 16:55:58 +0000 tail.1: Add an example for +n 1 MFC after: 3 days Sponsored by: Klara, Inc. --- 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 a888f6828bd1..9e13567e01e1 100644 --- a/usr.bin/tail/tail.1 +++ b/usr.bin/tail/tail.1 @@ -155,7 +155,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 @@ -165,6 +165,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 ,