I have a batch script which will print the entire line of search string into a text file.
for %%i in (configure.txt) do (
FINDSTR /C:"Widget Name=" %%i >> output.txt
)
Here is how my Configure.txt file will look like:
<Widget Name="example1"/>
<Property Name="exmaple2"/>
<Content Name="example3"/>
<Widget Name="example4"/>
<Widget Name="exmaple1"/>
I want to print the next word(example1) after the "Widget Name="(Search String) and also find the duplicates of the word(Example1) and print its count next to it,So that my output should be like:
example1 1
example4 0
Can someone let me know how to do this? Please note the configure.txt has around 1000 lines of data like above. I just gave an example.
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 243
تاريخ: چهارشنبه
9 تير
1395 ساعت: 14:09