How do you get the first file in a directory in bash? First being the what the shell glob finds first.
My search for getting the first file in a directory in bash brought me to an old post with a very specific request. I'd like to document my solution to the general question for posterity and make a place for people to put alternative solutions they'd like to share.
$LC_COLLATE
, or something else? – Toby Speight Dec 06 '21 at 08:38