I have a text file log that looks like this
2 total number of add errors
I have a script that is
get-content "c:\logfile.txt | select-string "total number of add errors"
I cant remember how to get it to just show the number.
Any suggestions?