Commit 8811f604 authored by Dustin Howett's avatar Dustin Howett

Add Search-SourceCode (alias scs)

parent c7ffc918
Function Search-SourceCode {
Param (
[Parameter(Mandatory=$True, ValueFromPipeline=$True, ValueFromRemainingArguments=$True)]
[string[]]$Include = ("*.c", "*.cpp", "*.h", "*.java", "*.m", "*.mm", "*.cc"),
[switch]$CaseSensitive = $False
Get-ChildItem -Path:$Path -Filter:$Filter -Include:$Include -Recurse |
Select-String -Pattern:$Pattern -CaseSensitive:$CaseSensitive
New-Alias scs Search-SourceCode
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment