I would like to know a command or function in linux bash to get the timestamp (and maybe format its output) of the last modified file inside a directory.
Let's say I have /path/mydir and this directory has a big bunch of files inside. Given its path, I want to output the timestamp of the most recent modified file.
I guess that the procedure could be do a foreach file recursive, check them all and update a variable with the most recent time each time a more recent one is found.
Edit: Sorry for the confusion but I wanted to intend the Epoch timestamp :)