回复 7# 娜美
在b.tmp这个文件里改啦 , 例如
(b.tmp不能有空行 ,不能有空行 ,不能有空行 ,不能有空行)- ^myphone$
- ^happywitch$
- ^hello$
- qwer
复制代码 像这种过管道挺坑的 , 建议还是直接来吧 , 比如- Move-Item -Force out.txt out.put
- Select-String -LiteralPath ((gci -Recurse *.txt).fullname) -Pattern (gc -LiteralPath 'b.tmp') |Out-File out.put
- Move-Item -Force out.put out.txt
复制代码
|