1833777 Members
2266 Online
110063 Solutions
New Discussion

Re: More functionality

 
Enda martin
Occasional Contributor

More functionality

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)

3 REPLIES 3
John Palmer
Honored Contributor

Re: More functionality

If you calculate how many lines are in the file first with 'wc -l' then you can call more with the +n argument where n is the number of lines in the file less about half a screen's worth.

Regards,
John
Dave Walley
Frequent Advisor

Re: More functionality

Enda.

I think you may find this will solve your problem.

more +G filename


this will bring you to the end of the file yet keep you in more mode.

Dave
why do i do this to myself
Vincenzo Restuccia
Honored Contributor

Re: More functionality

#more file
/what_search