Replace Type with AWK

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
darioit
Posts: 230
Joined: 02 Aug 2010 05:25

Re: Replace Type with AWK

#16 Post by darioit » 10 Apr 2012 06:51

No, I need to count the total of raw in a file, do you know how skip ctrl-z chars?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Replace Type with AWK

#17 Post by foxidrive » 10 Apr 2012 06:53

What are you counting? Stuff in binary files?

Better write a script in VB/WSH to handle binary files.

darioit
Posts: 230
Joined: 02 Aug 2010 05:25

Re: Replace Type with AWK

#18 Post by darioit » 10 Apr 2012 07:12

I mean, the total number of lines contained in a single file.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Replace Type with AWK

#19 Post by foxidrive » 10 Apr 2012 07:23

This should work if it is not a binary file.

Code: Select all

find /c /v "" <"file to count.txt"

Post Reply