Page 2 of 2
Re: Replace Type with AWK
Posted: 10 Apr 2012 06:51
by darioit
No, I need to count the total of raw in a file, do you know how skip ctrl-z chars?
Re: Replace Type with AWK
Posted: 10 Apr 2012 06:53
by foxidrive
What are you counting? Stuff in binary files?
Better write a script in VB/WSH to handle binary files.
Re: Replace Type with AWK
Posted: 10 Apr 2012 07:12
by darioit
I mean, the total number of lines contained in a single file.
Re: Replace Type with AWK
Posted: 10 Apr 2012 07:23
by foxidrive
This should work if it is not a binary file.
Code: Select all
find /c /v "" <"file to count.txt"