PowerShell: find in files

Per cercare una stringa all’interno di tutti i file di una directory (andando anche nelle sottodirectory) si fa così:

Get-ChildItem -Recurse -Include *.* | Select-String “pippo”

che abbreviato diventa:

ls -r -i * | Select-string “pippo”

Originale no?

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>