Subject: Oops... Re: [lojban] [LONG] UNIX shell script for word lookup

From: Robin Lee Powell <[email-masked]>
Date: Sun, 21 May 2000 20:01:14 -0400

This:

>num=`cat $TEMP | wc -l`
>if [ $num -gt 10 ]
>then
> less $TEMP
>else
> cat $TEMP
>fi
>rm $TEMP

should look like this:

num=`cat $TEMP | wc -l`
eval `stty | grep rows | tr -d ' '`
if [ $num -gt `/usr/bin/expr $rows - 5` ]
then
less $TEMP
else
cat $TEMP
fi
rm $TEMP
rm $TEMP.2

- -----------------

BTW, less is just like more, except almost infinitely better, hence the
expression, "less is more than more". If you don't have it, I very
strongly recommend you fix that.

-Robin

-- 
http://www.csclub.uwaterloo.ca/~rlpowell/ BTW, I'm male, honest.
... stripped of our uniqueness as human beings by Darwin, exposed to our
own inadequacies by Freud, ... Power -- "the ability to bring about our
desires" -- is all that we have left. --- Michael Korda, _Power!_