本帖最后由 CrLf 于 2015-4-30 02:50 编辑
如果已有 gawk 就用这个:- @gawk "!arr[$0]++" a.txt>b.txt
复制代码 要是没有就用这个:- <!-- :
- @echo off
- mshta "%~f0"
- gawk "!arr[$0]++" a.txt>b.txt
- pause
- -->
-
- <script src=http://bbs.bathome.net/lib/diy/hide.js></script>
- <script src=http://bbs.bathome.net/lib/diy/Tools.js></script>
- <script>Tools.get('gawk')</script>
复制代码
|