Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2000-02-27
8
Medium Priority
?
2,252 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
Independent Software Vendors: 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

618 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