Trying to search through .txt files and find line that contain any value higher than 0.
(Select-String -Path SADM-COUNT\*.txt -AllMatches '0*[1-9]\d*$').Line | Set-Content Output.txt
sample of the .txt file we are searching:
Fa0/1 12479523313 18114137 73428 7
Fa0/2 0 0 0 0
Fa0/3 0 0 0 0
I just want to see lines in the file that have lines with numbers higher than 0.
Any help would be greatly appreciated,