How to start Emacs with cursor at the end of a given file?

emacs

Solution

Silly (but working) answwer:

emacs +10000000 filename

Adjust the 10000000 if you have files with more lines than that.

Another way of doing it:

 emacs filename --eval "(goto-char (point-max))"

Note that the `--eval` ... is after the filename, as order matters here.

Problem

Is there a build-in in emacs to open a file at the end? So without using a wc first, and then using the output to do emacs +nboflines filename

Original source