The first file from a set

Apologies for the beginners question

I am looking to report one of the files with name matching requirement (concatenation would be OK too). I’d prefer to see of of the results rather than “” in report.

Several attempts:
[root@host ~]# /opt/BESClient/bin/qna
Default masthead location, using /etc/opt/BESClient/actionsite.afxm
Q: first 1 of it of ( files whose ( name of it ends with “_logUNKNOWN” ) of folder “/var/tmp” )
E: The operator “first” is not defined.

Q: ( first 1 of it ) of ( files whose ( name of it ends with “_logUNKNOWN” ) of folder “/var/tmp” )
E: The operator “first” is not defined.

Q: ( item 1 of it ) of ( files whose ( name of it ends with “_logUNKNOWN” ) of folder “/var/tmp” )
E: The tuple index 1 is out of range.

Q: concatenation of ( files whose ( name of it ends with “_logUNKNOWN” ) of folder “/var/tmp” )
E: The operator “concatenation” is not defined.

Q: concatenation " " of ( files whose ( name of it ends with “_logUNKNOWN” ) of folder “/var/tmp” )
E: The operator “concatenation” is not defined.

Q: ^C
[root@host ~]#

Thank you,
Aleksandr

For any of the concatenations, you’d need a “string” type rather than a “file” type. You cannot concatenate “files”, but you could concatenate “names of files” for example.

Jason,
Thank you! This put me in a better position (comparing to 1 hour ago).

Aleksandr

This works as expected:

Q: concatenation " " of names of ( files whose ( name of it ends with “_logUNKNOWN” ) of folder “/var/tmp” )
A: 5b52_logUNKNOWN 5b58_logUNKNOWN
T: 7075