1.在123.txt 找服务两个字的这一行@echo offfind /n "服务" 123.txt pause::注释 /n是显示出来第几行!2.打开123.txt @echo offstart 123.txt
1find "一个句子" 123.txt2start 123.txt
@echo offtype 123.txt | find "一个句子"pause保存成123.bat
@ehco offfind /n "一个句子" 123.txt pause