I have started learning powershell a couple of days ago, and I couldn\'t find anything on google that does what I need so please bear with my question.
I have been a
This is how I would do it, you don't need get-content:
ls -r | Select-String dummy | select line,path
or
ls -r | Select-String dummy | fl *
To see what the different properties are...
This is faster. The second argument is -filter:
ls -r . *.bat | select-string netsh
ls -r . -filter *.bat | select-string netsh