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.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question

Featured Tech Videos