[PATCH] doc: add example for %G format directive
Abhishek Kumar <[email protected]> Tue, 3 Mar 2026 23:06:47 +0530
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <CADKyiA0qYyVor4y1+Zr-RsrJ1=tOLQ4AZUKEhXMzU1Meci98Hg@mail.gmail.com> |
Hello, My name is Abhishek Kumar, and I am a new contributor interested in GNU Findutils and planning to participate in Google Summer of Code. While reading the documentation, I noticed that the %G format directive did not include a usage example. I have added a small example to improve clarity for users. I would appreciate any feedback or suggestions for improvement. Thank you for your time. Best regards, Abhishek Kumar
0001-doc-add-example-for-G-format-directive.patch
(application/octet-stream, 728 B)
From a697c288b1cffd60b8b70412ac2729134b55003f Mon Sep 17 00:00:00 2001 From: Abhishek Kumar <[email protected]> Date: Tue, 3 Mar 2026 17:31:05 +0000 Subject: [PATCH] doc: add example for %G format directive --- doc/find.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/find.texi b/doc/find.texi index 192f7dea..87d2ffc1 100644 --- a/doc/find.texi +++ b/doc/find.texi @@ -2028,6 +2028,11 @@ File's group name, or numeric group ID if the group has no name. @c supports %-X.Yg @c TODO: Needs to support # flag and 0 flag File's numeric group ID. + +@example +find . -printf "%G\n" +@end example + @item %u @c supports %-X.Yu File's user name, or numeric user ID if the user has no name. -- 2.43.0