The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
file command rprajendran UNIX for Advanced & Expert Users 3 05-13-2008 10:45 AM
rm command not able to remove file jambesh Shell Programming and Scripting 7 12-21-2007 04:37 AM
What is the command to add heading to a file? whatisthis UNIX for Dummies Questions & Answers 3 12-02-2005 12:17 AM
VI command for File Please $Circle$ UNIX for Dummies Questions & Answers 12 09-05-2005 01:23 AM
for file in ???? - command tamer UNIX for Dummies Questions & Answers 10 01-31-2001 06:40 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-18-2001
Registered User
 

Join Date: Jun 2001
Posts: 3
End of file using more command

How do I get to the end of a file using the more command
i.e. more filename

(I want to stay in the file, but don't want to have to do Shift + G to get to the end, as I want the command set up as a short cut.
I want to more the end of the file rather than the start but stay
within the file)
Forum Sponsor
  #2  
Old 06-18-2001
alwayslearningunix
Guest
 

Posts: n/a
more -p G [filename]

Regards.
  #3  
Old 06-18-2001
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
one more shortcut learned.

Code:
-p command

     +command  For each file examined, initially execute the more
               command  in  the command argument.  If the command
               is a positioning command, such as a line number or
               a regular expression search, set the current posi-
               tion to represent the final results  of  the  com-
               mand,  without  writing  any intermediate lines of
               the file.  For example, the two commands:

     more -p 1000j file
     more -p 1000G file

     are equivalent and start the display with the current  posi-
     tion  at  line  1000, bypassing the lines that j would write
     and scroll off the screen if it had been issued  during  the
     file  examination.  If the positioning command is unsuccess-
     ful, the first line in the file will be  the  current  posi-
     tion.
  #4  
Old 06-18-2001
alwayslearningunix
Guest
 

Posts: n/a
It's good to pick up these sorts of shortcuts to save a lot of time when in a hurry or under pressure - the little things like knowing a flag here and there often make the difference between finding a vital piece of information that can lead to solving a problem.

As with most general issues there are many ways to do things in UNIX - you could have piped tail into the more command to achieve the same effect, variety is the spice of of life!
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0