

CODE: [Copy to clipboard]关于问题2的LMOD方案(因为不知道是否可以控制行号的输出位数,所以采用了二次过滤的方法,也许 Climbing 兄或其他熟悉 LMOD 的朋友有更好的办法):lmod set 1=[$1] < s.txt > _setvar.bat
if exist _setvar.bat for %%c in (call del) do %%c _setvar.bat
CODE: [Copy to clipboard]或者这样(它们是等效的,前者更符合书写习惯,后者较贴近阅读习惯):lmod /l* [#]:[] < 3.txt | lmod /l* [3,2][+][5] > 4.txt
CODE: [Copy to clipboard][ Last edited by willsort on 2005-9-24 at 12:48 ]< 3.txt lmod /l* [#]:[] | lmod /l* [3,2][+][5] > 4.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |