Posts

Showing posts from September, 2011

Finding latest modified file/directory

Another useful command $ find . -exec stat \{} --printf="%y %n\n" \; | sort -n -r | head -1 $ for i in `ls`; do echo -n $i" "; find $i -exec stat \{} --printf="%y %n\n" \; | sort -n -r | head -1;done