Created
October 20, 2017 09:11
-
-
Save shaneis/e7b884b1d53451cc19d0e2d2946afd91 to your computer and use it in GitHub Desktop.
When intuition proves me an idiot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fileNames | ForEach-Object -Process { | |
switch ($_) { | |
($_ -match 'Index') { "Use index on: $_" } | |
($_ -match 'Stats') { "Use stats on: $_" } | |
($_ -match 'Backups') { "Use backups on: $_" } | |
($_ -match 'Restores') { "Use restores on: $_" } | |
($_ -match 'Checkdbs') { "Use checkdbs on: $_" } | |
Default { "didn't match anything..." } | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment