Mercurial > hg > Applications > mh
view 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 source
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