Thursday, July 07, 2011

DOS : Count number of lines in a file

You can use this neat command to count the number of lines in a file, using DOS :-

find /c /v "~`!@#$%^&*()_+" file.txt
It'll give an output like this :-

---------- file.txt: 943526