Mercurial > hg > Applications > mh
diff miscellany/compress-4.0/zmore @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/miscellany/compress-4.0/zmore Mon Apr 18 23:46:02 2005 +0900 @@ -0,0 +1,19 @@ +FIRST=1 +for FILE +do + if test $FIRST -eq 0; then + echo "--More--(Next file: $FILE)\c" + stty cbreak -echo + ANS=`dd bs=1 count=1 2>/dev/null` + stty -cbreak echo + echo " " + if test "$ANS" = 'e'; then + exit + fi + fi + echo "------> $FILE <------" + zcat $FILE | more + if test -t; then + FIRST=0 + fi +done