Skip to content

Instantly share code, notes, and snippets.

@NeilRobbins
Last active December 16, 2015 20:49
Show Gist options
  • Save NeilRobbins/5495192 to your computer and use it in GitHub Desktop.
Save NeilRobbins/5495192 to your computer and use it in GitHub Desktop.
Change the regex to match requirements Example 1 (line 1) Search in packages.xml files for those that reference a given package. Example 2 (line 3) Search in csproj files for references
find . -name packages.config -exec grep -H -n '^.*System.Windows.*' {} \;
find . -name *.csproj -exec grep -H -n '^.*<Reference Include="System.Windows.Controls.Toolkit.Internals, Version=4.0.5.0, Culture=neutral, PublicKeyToken=2c5c654d367bf4a7, processorArchitecture=MSIL">' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment