
CODE: [Copy to clipboard]findstr ^[ 123.txt|findstr ]$
CODE: [Copy to clipboard]在FINDSTR命令中[]属于正则表达式的元字符范围,所以必须要用\来进行字符化findstr /r "^\[.*\]$" 123.txt
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
CODE: [Copy to clipboard]findstr /b [ 123.txt|findstr /e ]
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |