Batch script that count all occurrences of a particular string

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Julya
Posts: 3
Joined: 02 Aug 2012 05:14

Batch script that count all occurrences of a particular string

#1 Post by Julya » 06 Jun 2019 05:13

Hello ,

I need a batch that count all occurrences of a particular string in a list of files,
and displays the file name and the number of occurrences for each of them .
Thanks in advance for help .

Samir
Posts: 345
Joined: 16 Jul 2013 12:00
Location: HSV
Contact:

Re: Batch script that count all occurrences of a particular string

#2 Post by Samir » 07 Jun 2019 21:09

Ummm...the find command itself can do that--find /?

Post Reply