[英]Remove a line from a file in Windows Batch
假設我有這樣的文件列表:
Example1.txt
Example2.txt
Example3.txt
DeleteMe.txt
是否可以從文件列表中刪除“ DeleteMe.txt”?
findstr
與grep
類似-並包含一個選項,僅給出與給定模式不匹配的行:
type in.txt | findstr /v /c:"deleteme.txt" > out.txt
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.