]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 25 Oct 2024 20:29:45 +0000 (22:29 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 25 Oct 2024 20:29:45 +0000 (22:29 +0200)
etc/profile.d/functions

index bf3c0e031db0b1c5877e18d1f731cfe12ae69fa9..308ed72a08da20004d02b1d4dcc7802cd4ea76e2 100755 (executable)
@@ -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() {
        (