From: Nicolas Boisselier Date: Thu, 19 Mar 2015 00:03:27 +0000 (+0100) Subject: find-sort-mtime X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=f94f6421224aa2232cda10bb42ec0a0731ec39ac;p=nb.git find-sort-mtime --- diff --git a/etc/bashrc.function b/etc/bashrc.function index 969f04d7..19680b02 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -239,7 +239,8 @@ ls-tree() { } find-sort-mtime() { - find $@ -type f -printf "%Tk\t%p\n" | sort -k1 -nr|cut -f2 + #find $@ -type f -printf "%Tk\t%p\n" | sort -k1 -nr|cut -f2 + find $@ -type f -printf "%T@\t%p\n" | sed 's/^\([0-9]\+\)\.0\+/\1/'|sort -k1 -n | cut -f 2 | head } nb-alert() {