Skip to content

Instantly share code, notes, and snippets.

@kfstorm
Created June 9, 2015 08:58
Show Gist options
  • Save kfstorm/a633e120262472682cf0 to your computer and use it in GitHub Desktop.
Save kfstorm/a633e120262472682cf0 to your computer and use it in GitHub Desktop.
$files = Get-ChildItem -Recurse | Where-Object {!$_.PSIsContainer} | Where-Object { $_.Name -match '^(.*)((?<!(\.g|\.i))\.cs|\.xaml|\.c|\.cpp|\.h)$' }
Select-String -Path $files -Pattern "[a-zA-z]+://[^\s""]+" -AllMatches | % { $_.Matches.Groups[0].Value } | select $_ -Unique | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment