Sunday 13 January 2013

run a command on the most recently modified file

from http://askubuntu.com/questions/10640/is-there-a-teminal-command-to-get-the-most-recently-created-file-or-folder

Sparr's answer

command "`ls -c1 | head -n1`"

No comments:

Post a Comment