"Fossies" - the Fresh Open Source Software Archive

Member "ncompress-5.0/zmore" (2 Feb 2021, 319 Bytes) of package /linux/privat/ncompress-5.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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