Re: Bash equivalent to DOS /p

2004-08-09 Thread Will Trillich
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? > >

Re: Bash equivalent to DOS /p

2004-08-09 Thread Will Trillich
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 ... >

Re: Bash equivalent to DOS /p

2004-07-20 Thread Chris Bannister
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

Re: Bash equivalent to DOS /p

2004-07-19 Thread John L Fjellstad
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

Re: Bash equivalent to DOS /p

2004-07-19 Thread John L Fjellstad
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

Re: Bash equivalent to DOS /p

2004-07-18 Thread Silvan
> > 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

Re: Bash equivalent to DOS /p

2004-07-18 Thread Jon Dowland
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

Re: Bash equivalent to DOS /p

2004-07-18 Thread John Summerfield
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

Re: Bash equivalent to DOS /p

2004-07-18 Thread John L Fjellstad
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

Re: Bash equivalent to DOS /p

2004-07-17 Thread John Summerfield
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Duggan
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Silvan
> 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Thomas Adam
--- 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread John Summerfield
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread John Summerfield
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread John Summerfield
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread John Summerfield
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread John Summerfield
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 --

Re: Bash equivalent to DOS /p

2004-07-16 Thread Thomas Adam
--- 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Nori Heikkinen
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Hendrik Boom
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: > > > > > > > > > > > >

Re: Bash equivalent to DOS /p

2004-07-16 Thread Nori Heikkinen
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 >

Re: Bash equivalent to DOS /p

2004-07-16 Thread Hendrik Boom
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Thomas Adam
--- 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Greg Folkert
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Patrick Albuquerque
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread alessandro giacomin
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Jacob S.
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread alessandro giacomin
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Paul E Condon
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Clive Menzies
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread csj
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Juha Siltala
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Pete Clarke
> 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Jacob S.
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Thomas Adam
--- 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Thomas Adam
--- 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

RE: Bash equivalent to DOS /p

2004-07-16 Thread Steve Barr
> > 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Thomas Adam
--- 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread John Hasler
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Ryan Waye
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Rus Foster
> 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

RE: Bash equivalent to DOS /p

2004-07-16 Thread Thomas Adam
--- 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Duggan
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Duggan
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Pete Clarke
> 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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Sven Hoexter
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Rus Foster
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Patrick Wiseman
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

Re: Bash equivalent to DOS /p

2004-07-16 Thread Thomas Adam
--- 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). --

Re: Bash equivalent to DOS /p

2004-07-16 Thread Kirk Strauser
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'

RE: Bash equivalent to DOS /p

2004-07-16 Thread Steve Barr
> 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

Bash equivalent to DOS /p

2004-07-16 Thread Duggan
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