?
Solved

What does "[Incomplete last line]" mean ??

Posted on 2000-02-27
8
Medium Priority
?
2,201 Views
Last Modified: 2013-12-26
Hi colleagues:

I have a unix file : When I open it using "vi", the following line appears:

"WDB211A1A.tmp" [Incomplete last line] 35 lines, 962
characters

What does it mean ?, Where is the error/invalid charater ??

Thanks a lot, SIDCAP
0
Comment
Question by:sidcap
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 3

Expert Comment

by:arnond
ID: 2562867
can you open the file with 'pico' ?
can you 'cat' it to the screen ?

Arnon David.
0
 
LVL 3

Expert Comment

by:jyu_88
ID: 2563110
I get that sometimes myself. the message can be ignored without any harm so far. guess  a missing \n at the last line or sth.
0
 
LVL 84

Expert Comment

by:ozo
ID: 2563192
jyu_88 is correct about the cause, but it could possibly lead to harm if the file is then processed by a routine that expects all lines to be complete.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:sidcap
ID: 2564531
ozo:

It is causing me a problem with an Oracle utility, the utility cancels with this kind of files.

How can I prevent this ?

Thanks, SIDCAP.
0
 

Expert Comment

by:cartoon022100
ID: 2564931
Hi,
I encountered these error messages while trying to open any binary or executable in vi.
Its because of the large lenght in line , the lines are folded to screen length with an "@" character in front.
0
 

Accepted Solution

by:
time4tea earned 0 total points
ID: 2573651
UNIX text files are supped to end with an \n character.

If your file doesn't then you will get this error.....

Its not really a problem, except, as ozo says, if you have a routine that counts \n chars

This will show you the problem:

perl -e 'open(F,">t");print F "t\nt";'

then do a

vi t

and a

cat t

0
 
LVL 3

Author Comment

by:sidcap
ID: 2582266
Thanks.
0
 
LVL 1

Expert Comment

by:kodiakbear
ID: 6820959
Fixed the -1 problem on this question.
Escrow points corrected.

kb
Community Support Moderator
Experts Exchange
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question