tail -1 */filename
head -1 */filename
ls -1v --color=never */filename | xargs tail -n 1
This is using GNU ls.
-v option is unique to GNU ls and not available in other utils it's easiest to use the output of
ls directly as the "seed". Then we pipe it into
xargs which builds the argument list in order it receives them from
ls, and then runs
tail on the whole thing.