Created
December 9, 2013 15:34
-
-
Save AmaiSaeta/7874062 to your computer and use it in GitHub Desktop.
PATHから"HOGEHOGE"を含む物を取り除くPowerShellコマンド。
"HOGEHOGE"を適時変更すれば良し。
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
((Get-Content Env:Path) -Split ";" | Where-Object { $_ -notmatch "\b" + "HOGEHOGE" + "\b" }) -Join ";" | Set-Content Env:Path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
()がうざったいので、もうちょっとどうにかならないかなとか考えてる。
ワンライナーじゃ無理かな……