From f94f6421224aa2232cda10bb42ec0a0731ec39ac Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 19 Mar 2015 01:03:27 +0100 Subject: [PATCH] find-sort-mtime --- etc/bashrc.function | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { -- 2.47.3