From: Nicolas Boisselier Date: Fri, 25 Oct 2024 20:29:45 +0000 (+0200) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=19b74f217261c5b05e1fe52f164b1d5c6a501b8c;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index bf3c0e03..308ed72a 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -537,7 +537,6 @@ ls_users() { reverse() { perl -e 'print reverse <>'; } epoch2date() { perl -M'POSIX strftime' -e 'e2d($ARGV[0]) and print "\n" and exit if @ARGV; while(<>){e2d($_)}; sub e2d(){local $_=shift;s/^(\d+)/strftime("%Y-%m-%d %H:%M:%S",localtime($1))/e; print $_}' $@; } -#function epoch2date() { perl -M'POSIX strftime' -e 'e2d while<>; sub e2d(){local $_=shift;s/^(\d+)/strftime("%Y-%m-%d %H:%M:%S",localtime($1))/e; print $_}' $@; } find_sort_mtime() { (