How do I select the latest file in Unix?

KellyPoima

New member
How do I select the latest file in Unix?
Answer
To find the latest modified file in a directory
-type
f -exec ls -lt {} + | head | awk ‘{print $9}’ After the O/P, I get the below mentioned error and the command doesnt terminate at all. find: ls terminated by signal 13 find: ls terminated by… Discussion started by Sree10 and has been viewed 3,606 times.
 

Tìm kiếm

Back
Top