bumbaermail
14th July 2022, 20:59
Hello,

I need to read the latest file (file which is created in last) from the file manager. The files do not have any timestamp in the filename. How can it be possible?

Regards

blanchap
17th August 2022, 16:36
Hi,
if your file is in Unix, you can use this in your script.

grep 'string to find' "$(ls -1rt /path/to/files/ | tail -n1)"

Regards.