Display result one page at a time | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Display result one page at a time

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-05-2003
nickaren nickaren is offline
Registered User
 
Join Date: Sep 2003
Last Activity: 10 September 2003, 8:44 PM EDT
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Display result one page at a time

hi

how can i display the result on the screen one page at a time?

say i search for .txt files and return the result on the screen one page at a time.
Sponsored Links
    #2  
Old 09-06-2003
nelamvr6 nelamvr6 is offline
Registered User
 
Join Date: Aug 2003
Last Activity: 19 October 2003, 9:40 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Try piping to more.

Example:

ls -l | more

will give the results of an ls -l comand one screen at a time.
Sponsored Links
    #3  
Old 09-06-2003
cbkihong cbkihong is offline Forum Advisor  
Advisor
 
Join Date: Sep 2002
Last Activity: 4 May 2014, 6:22 AM EDT
Location: Hong Kong, China
Posts: 1,622
Thanks: 0
Thanked 9 Times in 8 Posts
or use "less" instead of "more", which is a bit more versatile (you can move up and move down).
    #4  
Old 09-06-2003
nelamvr6 nelamvr6 is offline
Registered User
 
Join Date: Aug 2003
Last Activity: 19 October 2003, 9:40 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Additionally you can use "less" and "more" without a pipe.

Say for example that you wanted to read a large text file called "bigfile", you could either enter "more bigfile" or "less bigfile" (without the quotes of course).
Sponsored Links
    #5  
Old 09-10-2003
nickaren nickaren is offline
Registered User
 
Join Date: Sep 2003
Last Activity: 10 September 2003, 8:44 PM EDT
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Hammer & Screwdriver

how about displaying each file name on the screen one page at a time?

like i type ls, and i have 3 files, how does it display 1.txt, and i press enter or space or whatever, then displays 2.txt, then i press another key, and display 3.txt ?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Page load time- local page jamie_123 Web Programming 4 04-13-2012 10:14 AM
display command output page per page Mat_k UNIX for Dummies Questions & Answers 3 01-19-2011 09:49 AM
display the result of wc -l with words before and after the result melanie_pfefer UNIX for Dummies Questions & Answers 3 04-30-2008 07:33 AM
display result from user input thms_sum Shell Programming and Scripting 13 02-01-2008 04:34 AM



All times are GMT -4. The time now is 07:08 AM.