腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(1937)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
4
回答
定制
select-string
输出。
我有一个文本文件日志,如下所示我有一个脚本 get-content "c:\logfile.txt |
select-string
"total
浏览 0
修改于2015-06-09
得票数 1
2
回答
Select-String
返回多行
考虑一下这个例子:
Select-String
-InputObject $string -Pattern '127.0.0.1'
Select-String
-InputObject $string -SimpleMatch '127.0.0.1' -AllMatches 它还返回整个字符串。我做错了什么?
浏览 5
修改于2017-09-14
得票数 2
回答已采纳
1
回答
powershell
select-string
-pattern crlf问题
powershell是否有在自动开始新行之前输出的默认行长度?我在我的输出文件中看到了额外的CRLF,它们不应该出现在这里(即.输入文件是csv文件,每行的末尾是crlf,但在执行-pattern之后,结果文件会将每行拆分为多行,并且每行看起来都是相同的最大大小)。
浏览 1
提问于2013-09-03
得票数 1
1
回答
Select-String
-Quiet不返回True
在使用
Select-String
-Quiet时,我一直在尝试获取True的返回值。PS C:\> $vnc = netstat -ab |
select-string
"winvnc4.exe" -context 1,0 TCP [::]:5900 User:0 LISTENING PS C:\> $vnc |
Select-Strin
浏览 27
提问于2016-08-23
得票数 0
回答已采纳
2
回答
Select-String
-pattern不接受变量
我试图在
select-string
-pattern中使用一个变量,但它不返回任何结果。如果我将变量的内容复制并粘贴到语法中,它就可以工作。我所拥有的是我先前记录的一些散列,并且希望再次获得同一目录的散列,并查看它们是否与先前记录的散列相同,因此我尝试使用
select-string
。True True String System.Object 所需输出: PS C:\Users>
浏览 14
修改于2017-01-14
得票数 0
回答已采纳
2
回答
使用
Select-String
搜索文件数组
我可以使用
Select-String
返回一个文件列表,其中包含一些我正在查找的文本:if($fileSet -eq $null) $fileSet = Get-ChildItem *.cs -recurse |
Select-String
-SimpleMatch".ToList()" | group path | select name $fileS
浏览 31
提问于2019-07-25
得票数 0
回答已采纳
1
回答
Select-String
-pattern全字
代码如下: $cnt = Get-ChildItem $githubfolder -Filter DT*.c* -Recurse -Exclude *.sql |
Select-String
-pattern
浏览 3
提问于2014-11-04
得票数 3
1
回答
Powershell:
Select-String
不解析此变量
= $proc.StandardError.ReadToEnd()$newOutput = $output |
Select-String
因此,为了尝试并排除故障,我将$output发送到一个文本文件中,然后运行以下命令,这就是我得到的结果: $x = Get-Content c:\output.txt |
Select-String
"
浏览 2
修改于2012-07-05
得票数 3
回答已采纳
2
回答
使用
select-String
解析日志文件
$var =
Select-String
-Path "C:\Creds\AzCopyVerbose.log" -Pattern 'Finished Transfer' | ` Select-Object
浏览 0
提问于2018-11-10
得票数 2
回答已采纳
2
回答
Powershell
select-string
因转义序列而失败
SQLReporting@\My_PVOB)我想阅读有模式@\My_PVOB的内容)但是我得到了下面的问题
Select-string</em
浏览 0
提问于2011-12-20
得票数 1
回答已采纳
1
回答
Powershell "
select-string
“读取信息
EngConI需要从
Select-String
命令中获取信息的帮助。我需要找出engcon.pbo文件中有哪些来自$array的项。Outspeed", "Marsileaceae", "Chalybeate") {
Select-String
浏览 0
修改于2013-07-01
得票数 0
回答已采纳
3
回答
为什么
select-string
不能从管道接收
这是我得到的代码和错误
Select-String
: Cannot bind argumentAt line:1 char:52 + Get-Content C:\\events.txt |
Select-String
-patt
浏览 2
修改于2014-03-24
得票数 0
1
回答
Select-string
正则表达式
Get-ChildItem "\\$server\$Path" -Filter "*.log" |
select-string
-pattern $text |select -expandproperty
浏览 0
提问于2021-02-12
得票数 0
回答已采纳
2
回答
使用
Select-String
时忽略字符
我在文本文件中查找包含特定字符的字符串;我使用我只想获取与模式匹配的字符,但它还返回该字符串之前和之后的字符例如:S32145 thomasS09867 stephane 使用
Select-String
命令,我希望它显示所有的S ***单词,而不是名称。
浏览 0
修改于2018-09-06
得票数 2
1
回答
Powershell:
Select-String
未按预期进行加工
Sitecore_Installation\afhs72\Website\App_Config\Include\" $temp = Get-ChildItem ($includeFolder + "*.config") |
select-string
浏览 2
提问于2015-12-19
得票数 0
2
回答
为什么sls (
select-string
)不能工作
我是powershell的新手。今天我尝试了一些很简单的东西产生了echo,但我想要的是Alias echo -> Write-Out。alias | grep 'echo'
浏览 1
修改于2017-01-24
得票数 5
回答已采纳
2
回答
从
select-string
匹配中获取特定项。
我正在使用
select-string
搜索一个值。3055,29195059,2022-08-11,3,False$csvText= $sText | ConvertFrom-csv -Delimiter ',' $sLine = $csvText |
Select-string
浏览 13
提问于2022-10-13
得票数 1
回答已采纳
1
回答
powershell:拆分输出并在
select-string
之后打印
Username @domain.com" $body = (Get-Content 'C:\Users\xyz\Downloads\mylog.log' |
Select-String
浏览 84
修改于2018-06-02
得票数 1
回答已采纳
2
回答
Powershell -从脚本参数调用
select-string
w/参数
我有一个简单的脚本,可以为特定的文件扩展名调用
select-string
。我想通过脚本args选择性地提供其他选择字符串参数。我的脚本findm.ps1
select-string
*.m -pattern $args[0] $args[1]我得到以下错误
Select-String
: A positional parameter cannot be found that accepts argumen
浏览 2
修改于2011-03-05
得票数 0
回答已采纳
2
回答
Powershell:如何使用"
select-string
“来"grep”命令的输出?
get-service的输出中列出但是,如果我试图使用以下任何一种方法:PS C:\Users\x> get-service |
Select-String
-Pattern "nginx" PS C:\Users\x> get-service |
Select-String
浏览 2
提问于2021-06-30
得票数 1
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券