From 17357a651cfe9dc2183abcd217a54dcacab20f99 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 4 Apr 2016 17:25:17 +0100 Subject: [PATCH] find_sort_mtime --- etc/profile.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.47.3