Skip to content

Instantly share code, notes, and snippets.

@y0mbo
Last active January 30, 2018 17:22
Show Gist options
  • Save y0mbo/6f10246dbabdaa1ead1bb0e907e3adcc to your computer and use it in GitHub Desktop.
Save y0mbo/6f10246dbabdaa1ead1bb0e907e3adcc to your computer and use it in GitHub Desktop.
Powershell commands

Search

Get-ChildItem -Path c:\path\*.* -recurse | Select-String -pattern "xxx"

Concatenate all the text files.

Get-Content c:\dev\*.txt | Out-File -FilePath c:\dev\output.txt2 -Encoding ASCII -Append
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment