Useful script
$searchWord = @('IsShowRejectOptions')
Get-Childitem -Path "D:\Git\Database\Database2.0" -Recurse -include "*.sql" |
Select-String -Pattern "$searchWord" |
Select Path,LineNumber,@{n='SearchWord';e={$searchWord}}
=================================================
$searchWord = @('We have an') Get-Childitem -Path "C:\Users\Tollring\source\repos\ics360" -Recurse | Select-String -Pattern "$searchWord" | Select Path,LineNumber,@{n='SearchWord';e={$searchWord}}
GUIs make learning a tool easier. discoverability is a key feature that makes graphical user interfaces (GUIs) easier to learn and use, Unfortunately, GUIs have zero return on that investment. - Don Jones, Learn powershell in 3 months.
Powershell was made by Jeffery Snover.
Ask a Cisco administrator, or an AS/400 operator, or a Unix administrator. The answer is, “I’d rather have the person who can run things more efficiently from the command line.” Going forward, the Windows world will start to split into two groups: administrators who can use PowerShell, and those who can’t. As Don famously said at Microsoft’s TechEd 2010 conference, “your choice is ‘learn PowerShell,’ or ‘would you like fries with that?’ ===============================
git checkout master; git remote update origin --prune; git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -d $_}
No comments:
Post a Comment