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 #525
Difficulty: Medium
In ASCII, to convert between uppercase and lowercase versions, you only need to invert the second bit (0 for uppercase, 1 for lowercase).
True or False?

Featured Tech Videos