On Fri, Jul 16 at 10:28PM +0800, Duggan wrote:
> Rus Foster wrote:
>
> >On Fri, 16 Jul 2004, Duggan wrote:
> >>I know that this is a really n00bish question, but I have to
> >>ask. What is the command that limits output from a command
> >>to just a page at a time, like the /p command in DOS?
> >
On Fri, Jul 16 at 04:46PM -0400, Hendrik Boom wrote:
> On Fri, Jul 16, 2004 at 03:58:41PM -0400, Nori Heikkinen wrote:
> > > command 2>&1 | less
> >
> > dude! i've been trying to do that for months. tahnks!
> >
> > as an aside, did /p in DOS redirect stderr, too? it's been
> > so long ...
>
On Sat, Jul 17, 2004 at 08:00:51AM +0800, John Summerfield wrote:
>
> >>>Elijah
> >>>
> >>>
> >>That works for regular output. However, some programs also emit
> >>error messages onto stderr. The above command will *not* redirect
> >>error messages into less, so they might mess up the pagin
Silvan <[EMAIL PROTECTED]> writes:
> valid point. (Programming, or even working from a command line must
> be tedious for a lot of the world. cd [shift-7] usr [shift-7] local
> [shift-7] a [AltGr º][space] name [AltGr º][space] with [AltGr
> º][space] spaces )
Filecompletion, baby:-)
--
John
John Summerfield <[EMAIL PROTECTED]> writes:
> I don't know the differences between US and UK keyboards, but we've
> been using dollar-based decimal currency since Feb 66, so we use the
> same currency symbols as North Americans.
I haven't used a UK keyboard in years, but I know that the UK keybo
> > That really depends on what keyboard you use. The Norwegian one is
> > different. I don't know where it would be on a British keyboard, and
> > I'm not sure what kinda keyboard someone from Australia (au?) would
> > have.
>
> The pipe is indeed above the backslash on the british keyboard; bu
On Sat, 17 Jul 2004 09:57:10 +0200, John L Fjellstad
<[EMAIL PROTECTED]> wrote:
> Greg Folkert <[EMAIL PROTECTED]> writes:
>
> > Just to make sure you also understand that "|" is the caps of the
> > backslash (\) key, officially called pipe symbol.
>
> That really depends on what keyboard you use
John L Fjellstad wrote:
Greg Folkert <[EMAIL PROTECTED]> writes:
Just to make sure you also understand that "|" is the caps of the
backslash (\) key, officially called pipe symbol.
That really depends on what keyboard you use. The Norwegian one is
different. I don't know where it would be
Greg Folkert <[EMAIL PROTECTED]> writes:
> Just to make sure you also understand that "|" is the caps of the
> backslash (\) key, officially called pipe symbol.
That really depends on what keyboard you use. The Norwegian one is
different. I don't know where it would be on a British keyboard, an
Yeah, thats what I did first and said it didn't work. From all the
imput I think the following is a clear way to express it:
/command/ 2>&1 | less
where:
- the "command" is the specific function or action to be performed
- "2>" is the instruction to direct (the errors?) to stderr
- "&1" is the
John Summerfield wrote:
Rus Foster wrote:
On Fri, 16 Jul 2004, Duggan wrote:
I know that this is a really n00bish question, but I have to ask.
What is the command that limits output from a command to just a page
at a time, like the /p command in DOS?
Thankyou
Elijah
Try
cmd | less
[EM
> There's also the important point that this does something somewhat
> different:-)
> 2>1
:)
->find ~ -name 1
/home/silvan/1
/home/silvan/data/swf/1
/home/silvan/pixmaps/1
--
Michael McIntyre Silvan <[EMAIL PROTECTED]>
Linux fanatic, and certified Geek; registered Linux user #243621
h
--- John Summerfield <[EMAIL PROTECTED]> wrote:
> 1. Because it's a useful working example, unlike many others
Oh, wow.
> cat /etc/passwd | awk "/$USER/ {print \$0}"
>
> Of course, the awk program could be quite a deal more complicate than
> that.
So? That's still not a valid argument from [1
Thomas Adam wrote:
--- Pete Clarke <[EMAIL PROTECTED]> wrote:
Why not pipe the output through less .. eg:
#> cat somedoc.txt | less
Why would you want to cat the file _and_ page it? That is a useless use of
cat here, as less accepts STDIN.
1. Because it's a useful working example, unli
Rus Foster wrote:
On Fri, 16 Jul 2004, Duggan wrote:
I know that this is a really n00bish question, but I have to ask. What
is the command that limits output from a command to just a page at a
time, like the /p command in DOS?
Thankyou
Elijah
Try
cmd | less
[EMAIL PROTECTED]:~$ cmd
Thomas Adam wrote:
2> says to direct stderr
&1 means to duplicate it to stdout
There's also the important point that this does something somewhat
different:-)
2>1
from
2>&1
so the result you get when doing 2>&1 is that _both_ standard output and
standard error are shown.
read this togethe
Elijah
That works for regular output. However, some programs also emit
error messages onto stderr. The above command will *not* redirect
error messages into less, so they might mess up the pagination.
To get error messages piped through less, use
command 2>&1 | less
dude! i've been
Patrick Albuquerque wrote:
gauss% ll
zsh: command not found: ll
It is considered a bug in Debian for a script to blindly assume bash is
shell.
It might be a bug in the first of these, but not the second:
#!/bin/sh
#!/bin/bash
However, ll won't ordinarily be defined in either.
--
Cheers
John
--
--- Nori Heikkinen <[EMAIL PROTECTED]> wrote:
> well, it is well-known, but i somehow always get the order of the
> ampersands and redirection >s messed up. why, for exapmle, is there a
> '&' in front of the '1' there, but not the '2'?
Shell redirection...
2> says to direct stderr
&1 means t
on Fri, 16 Jul 2004 04:46:11PM -0400, Hendrik Boom insinuated:
> On Fri, Jul 16, 2004 at 03:58:41PM -0400, Nori Heikkinen wrote:
> > on Fri, 16 Jul 2004 01:46:30PM -0400, Hendrik Boom insinuated:
> > >
> > > That works for regular output. However, some programs also emit
> > > error messages onto
On Fri, Jul 16, 2004 at 03:58:41PM -0400, Nori Heikkinen wrote:
> on Fri, 16 Jul 2004 01:46:30PM -0400, Hendrik Boom insinuated:
> > On Fri, Jul 16, 2004 at 10:30:53PM +0800, Duggan wrote:
> > > Kirk Strauser wrote:
> > >
> > > >On Friday 2004-07-16 08:59 am, Duggan wrote:
> > > >
> > > >
> > > >
on Fri, 16 Jul 2004 01:46:30PM -0400, Hendrik Boom insinuated:
> On Fri, Jul 16, 2004 at 10:30:53PM +0800, Duggan wrote:
> > Kirk Strauser wrote:
> >
> > >On Friday 2004-07-16 08:59 am, Duggan wrote:
> > >
> > >
> > >
> > >>I know that this is a really n00bish question, but I have to ask. What
>
On Fri, Jul 16, 2004 at 10:30:53PM +0800, Duggan wrote:
> Kirk Strauser wrote:
>
> >On Friday 2004-07-16 08:59 am, Duggan wrote:
> >
> >
> >
> >>I know that this is a really n00bish question, but I have to ask. What
> >>is the command that limits output from a command to just a page at a
> >>tim
--- Clive Menzies <[EMAIL PROTECTED]> wrote:
> >From sid ~/.bashrc:
> # some more ls aliases
> #alias ll='ls -l'
> #alias la='ls -A'
> #alias l='ls -CF'
>
> I would guess that this would also apply to sarge
Yup -- it is still commented out by default
-- Thomas Adam
=
"The
On Fri, 2004-07-16 at 10:28, Duggan wrote:
[snip]
> I tried both Thomas's and your suggestions and neither has worked. Just
> to clarify I am trying to use the dumpkeys command and the output from
> it doesn't fit in one screen. I am not working in an X environment so
> there are no scroll bar
On Fri, Jul 16, 2004 at 10:08:07AM -0500, Jacob S. wrote:
> On Fri, 16 Jul 2004 15:31:24 +0100 (BST)
> Thomas Adam <[EMAIL PROTECTED]> wrote:
> > Making up commands is not a good practise to get into. There is no
> > command"ll". If you mean "ll" to be an alias for "ls -l" then you
> > should have
Duggan ha scritto:
I tried both Thomas's and your suggestions and neither has worked. Just
?
to clarify I am trying to use the dumpkeys command and the output from
it doesn't fit in one screen. I am not working in an X environment so
there are no scroll bars so I'm trying to figure out how I c
On Fri, 16 Jul 2004 10:09:06 -0600
Paul E Condon <[EMAIL PROTECTED]> wrote:
> On Fri, Jul 16, 2004 at 10:08:07AM -0500, Jacob S. wrote:
> > On Fri, 16 Jul 2004 15:31:24 +0100 (BST)
> > Thomas Adam <[EMAIL PROTECTED]> wrote:
> >
> > Have you looked at ~/.bashrc lately? ll _is_ a standard alias in
Duggan ha scritto:
I tried both Thomas's and your suggestions and neither has worked. Just
?
to clarify I am trying to use the dumpkeys command and the output from
it doesn't fit in one screen. I am not working in an X environment so
there are no scroll bars so I'm trying to figure out how I c
On Fri, Jul 16, 2004 at 10:08:07AM -0500, Jacob S. wrote:
> On Fri, 16 Jul 2004 15:31:24 +0100 (BST)
> Thomas Adam <[EMAIL PROTECTED]> wrote:
>
> Have you looked at ~/.bashrc lately? ll _is_ a standard alias in mine,
> or at least the installer put it there when I installed Debian Potato.
> Woody
On (16/07/04 10:08), Jacob S. wrote:
> On Fri, 16 Jul 2004 15:31:24 +0100 (BST)
> Thomas Adam <[EMAIL PROTECTED]> wrote:
>
> > --- Steve Barr <[EMAIL PROTECTED]> wrote:
> >
> > > > I know that this is a really n00bish question, but I have to
> > > > ask. What is the command that limits output
On 16. July 2004 at 9:59PM +0800,
Duggan <[EMAIL PROTECTED]> wrote:
> I know that this is a really n00bish question, but I have to
> ask. What is the command that limits output from a command to
> just a page at a time, like the /p command in DOS?
command | more
command | less
command | pager
S
On 2004-07-16, Duggan <[EMAIL PROTECTED]> wrote:
> I know that this is a really n00bish question, but I have to ask. What
> is the command that limits output from a command to just a page at a
> time, like the /p command in DOS?
Pipe the command to less: 'command | less'. Less is more :)
--
J
> Why would you want to cat the file _and_ page it? That is a useless use of
> cat here, as less accepts STDIN.
It was an example ... the OP wanted a way to page output from a command, the
command I chose for the example was "cat" - it could easily have been
anything else -
#> ls -lsart | less
B
On Fri, 16 Jul 2004 15:31:24 +0100 (BST)
Thomas Adam <[EMAIL PROTECTED]> wrote:
> --- Steve Barr <[EMAIL PROTECTED]> wrote:
>
> > > I know that this is a really n00bish question, but I have to
> > > ask. What is the command that limits output from a command
> > > to just a page at a time, lik
--- Rus Foster <[EMAIL PROTECTED]> wrote:
> Sound like STDOUT and STDERR
I thought this too, but dumpkeys writes to STDOUT in this instance.
-- Thomas Adam
=
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor" -- http://linuxgazette.net
" We'll just save u
--- Duggan <[EMAIL PROTECTED]> wrote:
> I tried both Thomas's and your suggestions and neither has worked. Just
Nice and specific -- what _exactly_ did not work? If you got an error such
as:
bash: less: command not found
then you should "apt-get install less", or use "more" which is what come
> > ll | more
>
> Making up commands is not a good practise to get into. There
> is no command "ll". If you mean "ll" to be an alias for "ls
> -l" then you should have stated so, since "ll" is not a
> standard alias at all, as far as bash is concerned in Debian.
Oops... You are correct. I
--- Pete Clarke <[EMAIL PROTECTED]> wrote:
> Why not pipe the output through less .. eg:
> #> cat somedoc.txt | less
Why would you want to cat the file _and_ page it? That is a useless use of
cat here, as less accepts STDIN.
-- Thomas Adam
=
"The Linux Weekend Mechanic" -- http://linuxgaze
Duggan wrote:
> I know that this is a really n00bish question, but I have to ask. What
> is the command that limits output from a command to just a page at a
> time, like the /p command in DOS?
Patrick writes:
> Pipe output to less, eg, 'ls | less'.
BTW this has nothing to do with Bash.
--
John
On Fri, 16 Jul 2004 15:27:46 +0100, Pete Clarke <[EMAIL PROTECTED]> wrote:
> > I know that this is a really n00bish question, but I have to ask. What
> > is the command that limits output from a command to just a page at a
> > time, like the /p command in DOS?
>
>
> Why not pipe the output throu
> it doesn't fit in one screen. I am not working in an X environment so
> there are no scroll bars so I'm trying to figure out how I can see the
> output page by page.
>
> Thanks
>
> Elijah
>
Sound like STDOUT and STDERR
Try
command 2>&1 | less
Rus
--
e: [EMAIL PROTECTED] : t: 1-888-327
--- Steve Barr <[EMAIL PROTECTED]> wrote:
> > I know that this is a really n00bish question, but I have to
> > ask. What is the command that limits output from a command
> > to just a page at a time, like the /p command in DOS?
>
>
> ll | more
Making up commands is not a good practise
Kirk Strauser wrote:
On Friday 2004-07-16 08:59 am, Duggan wrote:
I know that this is a really n00bish question, but I have to ask. What
is the command that limits output from a command to just a page at a
time, like the /p command in DOS?
less (or more). As in, instead of running
$ co
Rus Foster wrote:
On Fri, 16 Jul 2004, Duggan wrote:
I know that this is a really n00bish question, but I have to ask. What
is the command that limits output from a command to just a page at a
time, like the /p command in DOS?
Thankyou
Elijah
Try
cmd | less
Rgds
rus
I tried both Tho
> I know that this is a really n00bish question, but I have to ask. What
> is the command that limits output from a command to just a page at a
> time, like the /p command in DOS?
Why not pipe the output through less .. eg:
#> cat somedoc.txt | less
This will page the output, allowing you to sc
On Fri, Jul 16, 2004 at 09:59:32PM +0800, Duggan wrote:
> I know that this is a really n00bish question, but I have to ask. What
> is the command that limits output from a command to just a page at a
> time, like the /p command in DOS?
Oeh what about piping it to more or less?
try cat /etc/passw
On Fri, 16 Jul 2004, Duggan wrote:
> I know that this is a really n00bish question, but I have to ask. What
> is the command that limits output from a command to just a page at a
> time, like the /p command in DOS?
>
> Thankyou
>
> Elijah
>
Try
cmd | less
Rgds
rus
--
e: [EMAIL PROTECTE
On Fri, 16 Jul 2004, Duggan wrote:
:I know that this is a really n00bish question, but I have to ask. What
:is the command that limits output from a command to just a page at a
:time, like the /p command in DOS?
Pipe output to less, eg, 'ls | less'.
Patrick
--
To UNSUBSCRIBE, email to [EMAIL
--- Duggan <[EMAIL PROTECTED]> wrote:
> I know that this is a really n00bish question, but I have to ask. What
> is the command that limits output from a command to just a page at a
> time, like the /p command in DOS?
ls -F| less
(the -F is used so that you know what type the files are).
--
On Friday 2004-07-16 08:59 am, Duggan wrote:
> I know that this is a really n00bish question, but I have to ask. What
> is the command that limits output from a command to just a page at a
> time, like the /p command in DOS?
less (or more). As in, instead of running
$ command
you pipe it'
> I know that this is a really n00bish question, but I have to
> ask. What is the command that limits output from a command
> to just a page at a time, like the /p command in DOS?
ll | more
Steve
--
This message has been scanned for viruses by MLSD MailScanner
--
To UNSUBSCRIBE
I know that this is a really n00bish question, but I have to ask. What
is the command that limits output from a command to just a page at a
time, like the /p command in DOS?
Thankyou
Elijah
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL P
53 matches
Mail list logo