Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Count word occurrences in an html file

$
0
0

I have a file that  contains a range of word e.g. alusfw001, gfr3044,hyr0067. the words are sites, what i want to do is use powershell to go into the file "site.html" which has these sites listed and i want to count the number of occurances for each of them. I need to be dynamic to count any without say calling each of them first. 

I could add Site:alusfw001 to make it easier to call on each of them, can anyone help me.

 

Thank you.


Viewing all articles
Browse latest Browse all 8583

Trending Articles