how to know whether that file has eol or noeol before opening that file in VI editor

Hi,

I want to check whether file has EOL or NOEOL before opening this file in VI editor. My file is very big its in terms of 15-20 MB.

I am using ksh for this.

When we opened the file in vi editor, normally at last line we are able to see whether this is eol or noeol file. But i does want to check manually like this.

Please suggest me on this.

try man file