(1) For simplify, use ls -l
(2) use stat
Here,
1)the 'find' command will print the modification date for every file recursively.
2)sort -n(numerically) -r(for reverse) or you can use "sort -nr"
3)head -n 1: get the first entry or use "sed 1q".(3) use -printf to avoid calling stat repeatedly
Now, there we go!
没有评论:
发表评论