Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Line too long

Status
Not open for further replies.

Ambatim

Programmer
Feb 28, 2002
110
IN
I am trying to open a log file with vi.

It is saying "Line too long" and not displaying the full file.

How can I view the file.

Thanks in advance
Mallik
 
vi has a limit of 1024 characters per line. You could view and edit the file with the CDE editor, or ftp the file to your desktop and open it with an editor there.

If you just want to view the file, you could do a cat filename | more or a page filename.

There may be other Unix editors than can handle more than 1024 characters, but I'm not familiar with them.
 
I believe you should be able to use 'more' if you just wanted to view the file. Be careful about ftping back and forth as it may insert characters along the way that your programs can not understand......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top