Re: How to just print the first n entries found?
James Youngman <[email protected]>
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <CAGwX764BsOHK+x60p99U3JdU-edGhPkBBtRmwRmnHSF7iptjuw@mail.gmail.com> |
On Mon, Jul 6, 2020 at 12:18 AM Peng Yu <[email protected]> wrote: > I don't find `find` has an option to limit the entries to print only > to the first n entries. Is there such an option available? Thanks. For n=1, there is find -quit. For n > 1, there is the head(1) command. Thanks. James.