[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to just print the first n entries found?
From: |
James Youngman |
Subject: |
Re: How to just print the first n entries found? |
Date: |
Mon, 6 Jul 2020 11:55:02 +0100 |
On Mon, Jul 6, 2020 at 12:18 AM Peng Yu <pengyu.ut@gmail.com> 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.