+function revlines
authorshort <>
Thu, 5 Sep 2002 07:35:28 +0000 (07:35 +0000)
committershort <>
Thu, 5 Sep 2002 07:35:28 +0000 (07:35 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 843f2b8..ae015d3 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -118,6 +118,7 @@ function ctags {(unset ctags;
        fi; );}; export -f ctags
 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
 
 ulimit -c 0
 set +H