home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / shark.lzh / zmore < prev    next >
Text File  |  1990-11-12  |  305b  |  20 lines

  1. FIRST=1
  2. for FILE
  3. do
  4.     if test $FIRST -eq 0; then
  5.         echo "--More--(Next file: $FILE)\c"
  6.         stty cbreak -echo
  7.         ANS=`dd bs=1 count=1 2>/dev/null`
  8.         stty -cbreak echo
  9.         echo " "
  10.         if test "$ANS" = 'e'; then
  11.             exit
  12.         fi
  13.     fi
  14.     echo "------> $FILE <------"
  15.     zcat $FILE | more
  16.     if test -t; then
  17.         FIRST=0
  18.     fi
  19. done
  20.