本帖最后由 pd1 于 2022-10-22 15:36 编辑
上面是行号,下面的是内容- <# :
- @echo off
- powershell -NoProfile -ExecutionPolicy bypass "Get-Content -literal '%~f0' |Out-String|Invoke-Expression"
- pause
- #>
- $a=gc .\333.txt
- 0..($a.Length-1) |%{if($a[$_].contains(">楼主")){$_+2}}
复制代码
- <# :
- @echo off
- powershell -NoProfile -ExecutionPolicy bypass "Get-Content -literal '%~f0' |Out-String|Invoke-Expression"
- pause
- #>
- $a=gc .\333.txt
- 0..($a.Length-1) |%{if($a[$_].contains(">楼主")){$a[$_+1]}}
复制代码
|