help-bash
[Top][All Lists]
Advanced

[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]