I've got a restore script for restoring the latest .tar.gz of some directories, but the script we're using parses output from
and takes the first line. Just wondered if there was a straight up command for finding newest file.
Ta.
Code:
ls -1t
Ta.

Last edited: