Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by ziggy (25) on 2003.06.29 10:56 (#21527) Journal
    wc's linecount simply counts newlines. By definition, Unix text files should have a newline at the end of the last character. If it doesn't, the last line is "incomplete", and the linecount will be off by one.

    At worst, wc will be one line off because the trailing newline is missing. (vi/vim can show a warning about this as well.)