Finding EOL char is there or not in a big size file

Hi,

I am using ksh.

I have to find wether data file has EOL or not. as per my knowledge we can easily find by checking each character. But this is a tedious job as per my requirement because my data file size is very big . It may be in 25-30 MB.
So please advice me how i can check wether data file has EOL or not.

Thanks in advance

If you want to check every line, you gonne have to parse the whole file,
or do you only want to check the first or last line ?

i only want to check end of line

I think you mix two things.
There is a EOL at the end of each line and there is something like EOF (end of file).
As far as i understand, you mean the EOF character, is this so ?

grep -q 'character goes here' bigfile

Unix doesn't have an EOF character, and EOF condition for a file, yes.
EOL can mean a newline \n - but since the OP asked for EOL instead of newline, I don't know what is meant. I guess '\n'