![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Count number of occurences of a word | shikhakaul | UNIX for Dummies Questions & Answers | 7 | 11-30-2007 04:22 PM |
| Count the number of occurence of perticular word from file | rinku | Shell Programming and Scripting | 40 | 08-10-2007 04:33 PM |
| How to count lines - ignoring blank lines and commented lines | kthatch | UNIX for Dummies Questions & Answers | 6 | 05-24-2007 10:21 PM |
| Count number of lines in Binary file | vanand420 | Shell Programming and Scripting | 3 | 09-04-2005 10:07 PM |
| counting lines and showing the output | jjoves | UNIX for Dummies Questions & Answers | 13 | 08-03-2004 06:45 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
word count showing wrong number of lines
Hi ,
I am using SUN OS Version 5.6. I have a file that contains records of length 270. when I do 'set nu' in vi editor, I get the count as 86. whereas when I do "wc -l" on the command prompt, it shows the count as only 85. this is very strange. why would the 'wc' show 1 record less. The job that processed the file shows in the log that it loaded 86 records. I checked the last record in that file and it is exactly the same as the other records and of same record length. can anyone answer my question pls. |
| Forum Sponsor | ||
|
|