簡體   English   中英

從Windows Batch中的文件中刪除一行

[英]Remove a line from a file in Windows Batch

假設我有這樣的文件列表:

Example1.txt
Example2.txt
Example3.txt
DeleteMe.txt

是否可以從文件列表中刪除“ DeleteMe.txt”?

findstrgrep類似-並包含一個選項,僅給出與給定模式不匹配的行:

type in.txt | findstr /v /c:"deleteme.txt" > out.txt

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM