Solved

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

Posted on 2000-02-27
8
2,010 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
8 Comments
 
LVL 3

Expert Comment

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

Arnon David.
0
 
LVL 3

Expert Comment

by:jyu_88
Comment Utility
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
Comment Utility
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
 
LVL 3

Author Comment

by:sidcap
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Expert Comment

by:cartoon022100
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks.
0
 
LVL 1

Expert Comment

by:kodiakbear
Comment Utility
Fixed the -1 problem on this question.
Escrow points corrected.

kb
Community Support Moderator
Experts Exchange
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now