[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Oops... Re: [lojban] [LONG] UNIX shell script for word lookup
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!_
------------------------------------------------------------------------
WRITERS WANTED! Themestream allows ALL writers to publish their
articles on the Web, reach thousands of interested readers, and get
paid in cash for their work. Click below:
http://click.egroups.com/1/3840/3/_/17627/_/958953688/
------------------------------------------------------------------------
To unsubscribe, send mail to lojban-unsubscribe@onelist.com