本帖最后由 pcl_test 于 2015-4-1 15:53 编辑
回复 1# w1983912 - @echo off
- setlocal enabledelayedexpansion
- (for /f "tokens=1* delims=,;" %%a in ('type "测试.txt"') do (
- set "word=%%aж"
- for /f "delims=" %%b in ('type "pinyin.txt" ^|sort /+65535') do (
- set "word=!word:%%b=!"
- )
- if "!word!" == "ж" findstr /b /r "%%a" "测试.txt"
- ))>"结果.txt"
- pause
复制代码
|