Archer72 says: It's in my memory
RE: hpr4417::2025-07-08 Newest matching file by Dave Morriss00:22:02 Listen in
ogg,
opus,
or
mp3 format.
Dave,
Thanks for the show. This is one that I will have to refer to at a later date. For now, I'm putting in my memory to refer back.
Archer72
ToeJet says: Alternate method
RE: hpr4417::2025-07-08 Newest matching file by Dave Morriss00:22:02 Listen in
ogg,
opus,
or
mp3 format.
I use a similar pattern to find newest and oldest
PATTERN is any valid filename pattern and path if needed
PATTERN=*.txt #Text file in current direcory
PATTERN=/dir1/*.sh #sh file in /dir1
PATTERN=/dir2/[a-j]* #file beginning with a-j in /dir2
#Find Newest
NewFile=$(dir -1tQ ${PATTERN} | head -n 1)
NewFile=${NewFile//\"/} #Remove " in Name
#Find Oldest
OldFile=$(dir -1rtQ ${PATTERN} | head -n 1)
OldFile=${OldFile//\"/} #Remove " in Name