摘要: PowerShell类grep 方法一: windows下没有grep不过有findstr, 功能差不多 方法二: powershell自带的正择功能 xxx | where {$_ -match "alicloud_slb"} 不过一个常用功能这么长写起来太麻烦了, 顺手写个脚本: 1 funct 阅读全文
posted @ 2020-03-18 13:39 酱_油 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: PowerShell的所有历史记录: Get-Content (Get-PSReadLineOption).HistorySavePath 顺手写了一个掉用的函数: function Get-AllHistory { $his = Get-Content (Get-PSReadLineOption) 阅读全文
posted @ 2020-03-18 13:27 酱_油 阅读(1733) 评论(0) 推荐(0) 编辑