[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2312
  • Last Modified:

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

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
sidcap
Asked:
sidcap
1 Solution
 
arnondCommented:
can you open the file with 'pico' ?
can you 'cat' it to the screen ?

Arnon David.
0
 
jyu_88Commented:
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
 
ozoCommented:
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
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
sidcapAuthor Commented:
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
 
cartoon022100Commented:
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
 
time4teaCommented:
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
 
sidcapAuthor Commented:
Thanks.
0
 
kodiakbearCommented:
Fixed the -1 problem on this question.
Escrow points corrected.

kb
Community Support Moderator
Experts Exchange
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now