Solved

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

Posted on 2000-02-27
8
2,032 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
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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

14 Experts available now in Live!

Get 1:1 Help Now