Tech Support > Operating Systems > UNIX / Variants > unix riddlee
unix riddlee
Posted by puzzlecracker on February 21st, 2005


Say that when you run the Unix command junky in your shell, it spits
out a ton of text to the console, too much for your console buffer to
hold. How would you run it so that you can look at everything it
outputs after it finishes?

Posted by Barry Margolin on February 21st, 2005


In article <1109019597.399243.74360@z14g2000cwz.googlegroups. com>,
"puzzlecracker" <ironsel2000@gmail.com> wrote:

junky | less

will pipe the output to a pager, that lets you read it slowly. If your
system doesn't have "less", it probably has its predecessary "more".

Or:

junky > filename

and then read filename in an editor.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

Posted by Bill Marcum on February 22nd, 2005


On 21 Feb 2005 13:07:53 -0800, puzzlecracker
<ironsel2000@gmail.com> wrote:

Posted by John Kelly on February 22nd, 2005


puzzlecracker wrote:
command 2>&1 | more


Similar Posts