回复 1# smluo1028
第3方工具od( http://bcn.bathome.net/tool/od.exe )及gawk( http://bcn.bathome.net/tool/4.1.0/gawk.exe )组合实现如下:- od -An -w1 -td1 tone.cfg|gawk "($0>31)&&($0<127){printf(\"%c\",$0);A=$0+0;next}(($0=10)||($0=13)){if((A!=10)&&(A!=13))print\"\";A=$0+0;next}{printf(\"%c\",32);A=32}"|gawk "/\.wtg/">"out.txt"
复制代码
|