Files
oldlinux-files/Linux-0.98/Yggdrasil-0.98.3/bin/zmore
2024-02-19 00:21:16 -05:00

23 lines
319 B
Plaintext
Executable File

:
#!/bin/sh
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