[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] The best way to get a file in a directory
From: |
Pierre Gaston |
Subject: |
Re: [Help-bash] The best way to get a file in a directory |
Date: |
Fri, 23 Nov 2018 09:02:53 +0200 |
On Fri, Nov 23, 2018 at 12:34 AM Peng Yu <address@hidden> wrote:
> >
> >
> > https://unix.stackexchange.com/a/62883
> >
>
> This involves find. Anything native to bash that can return an arbitrary
> file?
>
I'm pretty sure the only way to somehow access the content of a directory
without an external command is with a glob.
Find may be still faster than using a glob in a dir with many many files
since it doesn't do things like sorting
the filenames an probably use less memory.
Re: [Help-bash] The best way to get a file in a directory, Chris F.A. Johnson, 2018/11/29