简体   繁体   中英

Remove a line from a file in Windows Batch

Say if I had a file list like so:

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

Is it possible to remove the "DeleteMe.txt" from the file list?

findstrgrep类似-并包含一个选项,仅给出与给定模式不匹配的行:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM