From: short <> Date: Thu, 5 Sep 2002 07:35:28 +0000 (+0000) Subject: +function revlines X-Git-Tag: bp_liverpm~106 X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=5fa478af40de0bb82e4870137deabeda31e6abc5 +function revlines --- diff --git a/.bashrc b/.bashrc index 843f2b8..ae015d3 100644 --- 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