How to read a particular line in a file with 500000 records init

I am trying to open a file and check a record. The file has 543267 records and I want to check the record 514455. I am trying to open in vi and go to that line

:514455 but i get the error not enough lines in buffer

How should i overcome this? Please help.

Try

:set linelimit=1048560

else try VIM.

I am still getting

message

 sed -n '514455q;514455,514455p' filename > line.txt
vi line.txt

Jim,

The line.txt file is still 0 bytes.

It works for me - on a similar big file.
try:

sed -n '514455,514455p' filename > line.txt
vi line.txt

assuming 514455 is the correct line number.

Try this:

head -514455 FILENAME|tail -1 >line.txt

then vi line.txt

Hope this helps,

Praveen Indramohan