From: Nicolas Boisselier Date: Mon, 4 Apr 2016 16:25:17 +0000 (+0100) Subject: find_sort_mtime X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=17357a651cfe9dc2183abcd217a54dcacab20f99;p=nb.git find_sort_mtime --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 3891dfba..0f3a4881 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -182,7 +182,7 @@ find_sort_mtime() { if [ -n "$DARWIN" ]; then find $@ -type f -exec stat -f '%m'$'\t''%N' {} \; else - find $@ -type f -printf "%T@\t%p\n" | sed 's/^\([0-9]\+\)\.0\+/\1/' + find $@ -type f -printf "%T@\t%p\n" | sed 's/^\([0-9]\+\)\.[0-9]\+/\1/' fi ) | sort -k1 -n | cut -f 2 }