From e5481c77578bfcf0624dc3b6a93968c34cd6c150 Mon Sep 17 00:00:00 2001 From: short <> Date: Wed, 14 Sep 2005 03:22:04 +0000 Subject: [PATCH] Simplified revlines(1). --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index c87c1b7..cbf93fd 100644 --- a/.bashrc +++ b/.bashrc @@ -229,7 +229,7 @@ function ctags {(unset ctags; function ctagsh { ctags "--c-types=+px"; }; export -f ctagsh function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );}; export -f cpan function exx { cd "`unset exx;exx "$@"|tee /proc/self/fd/2|tail -n1|sed -n 's/^extdir=//p'`"; };export -f exx -function revlines { perl -e 'my @r=();push @r,$_ while (<>);print pop @r while @r;'; }; export -f revlines +function revlines { perl -e 'print reverse <>;'; }; export -f revlines ulimit -S -c 0 set +H -- 1.8.3.1