![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 03:37 AM |
| What is the command to add heading to a file? | whatisthis | UNIX for Dummies Questions & Answers | 3 | 12-01-2005 11:17 PM |
| 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 05:40 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 | ||
|
|
|
|||
|
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.
|
|
|||
|
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 UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|