Someone told be there's one in Unix and they suggested there was probably one in DOS.
So, is there or not ?
Someone told be there's one in Unix and they suggested there was probably one in DOS.
So, is there or not ?
I don't remember any version of DOS having native line or word count, it was one of the missing features people wrote utilities to provide, like here:
http://members.optushome.com.au/quentinc/ti.html
For example:In other words, we've told FIND to count ("/c") the number of lines that do not contain ("/v") a string of text ("~`!@#$%^&*()_+") that is unlikely to exist in the file ("c:\foobar.txt"). FIND will return a result similar to:
- find/c/v "~`!@#$%^&*()_+" c:\foobar.txt
(The "143" is the number of lines found).
- ---------- c:\foobar.txt: 143
Thanks to you both.
Vernon I think I like your option.
Cheers.
You're Welcome. :)
BTW, if you'd rather not see the:in the DOS (FIND's) response, you could use something like:
- ---------- c:\foobar.txt:
instead. All you'll get then is simply the number of lines.
- type c:\foobar.txt|find/c/v "~`!@#$%^&*()_+"