Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 18th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # In case Windows blocks the execution of PS scripts.
  2. Set-ExecutionPolicy Unrestricted -Scope CurrentUser
  3.  
  4. # Find text pattern "mah" in all files with extension ".bib" in current directory (also in sub-dirs):
  5. Get-ChildItem . -Filter *.bib -Recurse | Select-String "mah"
  6.  
  7. # locate a program or a command (for e.g., notepad.exe)
  8. gcm notepad*