[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash equivalent to DOS /p



On Fri, 16 Jul 2004 15:27:46 +0100, Pete Clarke <pete@dynotechnic.co.uk> 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 through less .. eg:
> #> cat somedoc.txt | less
> 
> This will page the output, allowing you to scroll forwards and backwards
> through it.
> 
> HTH
> 
> Pete.
> 
> 
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 
If you want to keep the output so you can see it later, do this:

command > filename.txt(extension optional)



Reply to: