Re: [SLUG] Need Text reader

From: Eben King (eben01@verizon.net)
Date: Tue Jul 04 2006 - 23:57:52 EDT


On Tue, 4 Jul 2006, Chuck Hast wrote:

> On 7/4/06, Eben King <eben01@verizon.net> wrote:
>>
>> So it doesn't detect the dash line when running remotely. Hmm. Maybe the
>> transmission modifies the line ending, or does something funny with dash
>> lines? Well, just for testing, make a file with the line "ZYXWV", change
>> the script to
>>
>> if echo "$line" | grep -q -e '^ZYXWV' ; then
>>
>> and see if it works then. The failure I had expected was /dev/console not
>> working, so you'd pound on "enter" to no avail.
>>
>> Also did you try "more -24 filename"? Might need a "TERM=dumb" in there
>> too.
>
> Tried it all and still get the same results, not quite sure if I did the
> TERM-dumb part right, and I tried that with less....

Equals, not dash; the syntax is

TERM=dumb more -24 filename

It sets the variable TERM to the value "dumb" for just the "more" command,
whereas "TERM=dumb" would set it permanently (well, until you did something
that changed it).

-- 
-eben    QebWenE01R@vTerYizUonI.nOetP    http://royalty.no-ip.org:81
LEO:  Now is not a good time to photocopy your butt and staple
it to your boss' face, oh no.  Eat a bucket of tuna-flavored pudding
and wash it down with a gallon of strawberry Quik.  -- Weird Al
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:34:23 EDT