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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vi - Line too long

Status
Not open for further replies.

dk8415

MIS
Dec 15, 2000
5
0
0
US
I edit my /etc/hosts file in notepad or word and save it as a text file and upload it to the mainframe. I haven't had a problem in the past but now I get this "line too long" error and I can't look at the file in VI. I've looked at the right margin and nothing is longer than 76 characters. Can anyone give me a clue why I get this?
 
The file probably no longer has a linefeed (\n) as the line separator. Use

od -c hosts

to find out what it does have. How are you getting it to the mainframe? If you are using ftp, make sure that you set the ascii option before sending it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top