* Items fly by
@ erik burggraaf
` Kirk Reiser
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: erik burggraaf @ UTC (permalink / raw)
To: speakup
Hi list. I'm using the locate command to find some diagnostic software and
potencial mount points for basic hardware like a floppy drive or a modem. I
can find what I want no problem, but I also get a lot of things I don't
want. Sometimes screens after screens. The screens scroll automaticly, and
I wonder if there's a way to change this. Failing that, is there a way to
get at the items at the top of the list without doing a locate and listening
to the whole thing over. I've done this 4 or 5 times, and it's starting to
be counter productive. I think if I could just stop the scroll where I
wanted and review the lines I'm interested in, I'd be a little more
effective.
Thanks for any advice.
Erik
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.404 / Virus Database: 228 - Release Date: 15/10/2002
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Items fly by
Items fly by erik burggraaf
@ ` Kirk Reiser
` Steve Holmes
` Thomas Stivers
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Kirk Reiser @ UTC (permalink / raw)
To: speakup
Hi Eric: Under Linux you can pipe the output of any command through a
pipe to another program. In this case you want to pipe your programs
output to 'more' or 'less' which will page the output to you:
program-to-pipe | more
That's should do it.
Kirk
--
Kirk Reiser The Computer Braille Facility
e-mail: kirk@braille.uwo.ca University of Western Ontario
phone: (519) 661-3061
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Items fly by
` Kirk Reiser
@ ` Steve Holmes
0 siblings, 0 replies; 8+ messages in thread
From: Steve Holmes @ UTC (permalink / raw)
To: speakup
Another couple ideas come to mind. When piping stuff to less, very
often, you need to include the output from STDERR into the pipe also.
Simply |less will only capture output from STDOUT so I often will do
<command> 2>&1 |less
thus standard output and standard error (1 and 2 respectively) both
get piped into less, my pager of choice. Once in less, you can scroll
up and down through the text and do searches and whatever else you
want.
Another neat trick is to use the script facility. Type script and hit
enter; that will spawn a sub shell and leave you at a shell prompt but
from here on until you close this shell, all output will be recorded
in a file called by default 'typescript'. When done, type exit to
close this sub shell and the typescript file will then be closed and
available for viewing. Do a 'man script' for more details.
On Sun, Oct 20, 2002 at 11:56:17AM -0400, Kirk Reiser wrote:
> Hi Eric: Under Linux you can pipe the output of any command through a
> pipe to another program. In this case you want to pipe your programs
> output to 'more' or 'less' which will page the output to you:
>
> program-to-pipe | more
>
> That's should do it.
>
> Kirk
>
> --
>
> Kirk Reiser The Computer Braille Facility
> e-mail: kirk@braille.uwo.ca University of Western Ontario
> phone: (519) 661-3061
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Items fly by
Items fly by erik burggraaf
` Kirk Reiser
@ ` Thomas Stivers
` Ralph W. Reid
` Jude DaShiell
3 siblings, 0 replies; 8+ messages in thread
From: Thomas Stivers @ UTC (permalink / raw)
To: speakup
Pipe commands that scroll through more or less. for example on my system
this produces miles of output all in pages.
slocate *.mp3 |less
Thats the secret of *nix, many small utility programs, not setting
scrolling settings and the like in each program. Oh yeah slocate is
basically the same as locate.
On 10/20/02 11:49 AM -0400, erik burggraaf wrote:
> Hi list. I'm using the locate command to find some diagnostic software and
> potencial mount points for basic hardware like a floppy drive or a modem. I
> can find what I want no problem, but I also get a lot of things I don't
> want. Sometimes screens after screens. The screens scroll automaticly, and
> I wonder if there's a way to change this. Failing that, is there a way to
> get at the items at the top of the list without doing a locate and listening
> to the whole thing over. I've done this 4 or 5 times, and it's starting to
> be counter productive. I think if I could just stop the scroll where I
> wanted and review the lines I'm interested in, I'd be a little more
> effective.
> Thanks for any advice.
> Erik
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.404 / Virus Database: 228 - Release Date: 15/10/2002
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Thomas Stivers
e-mail: stivers_t@ev1.net
http://stivers-home.dyndns.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Items fly by
Items fly by erik burggraaf
` Kirk Reiser
` Thomas Stivers
@ ` Ralph W. Reid
` Doug Lawlor
` Jude DaShiell
3 siblings, 1 reply; 8+ messages in thread
From: Ralph W. Reid @ UTC (permalink / raw)
To: speakup
erik burggraaf staggered into view and mumbled:
>
>Hi list. I'm using the locate command to find some diagnostic software and
>potencial mount points for basic hardware like a floppy drive or a modem. I
>can find what I want no problem, but I also get a lot of things I don't
>want. Sometimes screens after screens. The screens scroll automaticly, and
>I wonder if there's a way to change this. Failing that, is there a way to
>get at the items at the top of the list without doing a locate and listening
>to the whole thing over. I've done this 4 or 5 times, and it's starting to
>be counter productive. I think if I could just stop the scroll where I
>wanted and review the lines I'm interested in, I'd be a little more
>effective.
>Thanks for any advice.
>Erik
Try:
locate <your_stuff> | more
where <your_stuff> is the string you want to use--do not include the
< and > signs.
If you just want to see the top 20 lines, you could pipe it through
`head' instead as follow:
locate <your_stuff> | head -20
or you could redirect the output into a file for later viewing or
editing as follows:
locate <your_stuff> > filename.txt
Have fun!
--
Ralph. N6BNO. Wisdom comes from central processing, not from I/O.
rreid@sunset.net http://personalweb.sunset.net/~rreid
Opinions herein are either mine or they are flame bait.
CIRCLE CIRCUMFERENCE = 2 * _pi * r
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Items fly by
Items fly by erik burggraaf
` (2 preceding siblings ...)
` Ralph W. Reid
@ ` Jude DaShiell
3 siblings, 0 replies; 8+ messages in thread
From: Jude DaShiell @ UTC (permalink / raw)
To: speakup
Sure that's no problem. do locate x | less. Once that's done, it scrolls
one screen at a time. Also, locate x >locate.log, then less locate.log.
On Sun, 20 Oct 2002, erik burggraaf wrote:
> Hi list. I'm using the locate command to find some diagnostic software and
> potencial mount points for basic hardware like a floppy drive or a modem. I
> can find what I want no problem, but I also get a lot of things I don't
> want. Sometimes screens after screens. The screens scroll automaticly, and
> I wonder if there's a way to change this. Failing that, is there a way to
> get at the items at the top of the list without doing a locate and listening
> to the whole thing over. I've done this 4 or 5 times, and it's starting to
> be counter productive. I think if I could just stop the scroll where I
> wanted and review the lines I'm interested in, I'd be a little more
> effective.
> Thanks for any advice.
> Erik
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.404 / Virus Database: 228 - Release Date: 15/10/2002
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
Items fly by erik burggraaf
` Kirk Reiser
` Steve Holmes
` Thomas Stivers
` Ralph W. Reid
` Doug Lawlor
` Ari Moisio
` Jude DaShiell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).