Visit Our UNIX and Linux User Community


need Help on wc -l


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting need Help on wc -l
# 1  
Old 11-03-2009
need Help on wc -l

All,

When i put wc -l <file>, it shows 227 lines
but when i open the file like
cat <file> |nl |less

it shows 228 lines . Please help n debugging and understanding wt s wrong
# 2  
Old 11-03-2009
The last line is not terminated by a new-line.

Previous Thread | Next Thread
Test Your Knowledge in Computers #874
Difficulty: Medium
A programming language is homoiconic if a program written in it can be manipulated as data using the language, and thus the program's internal representation can be inferred just by reading the program itself.
True or False?

Featured Tech Videos