回复 1# a574045075
第3方工具gawk( http://bcn.bathome.net/tool/4.1.0/gawk.exe )的实现方式如下:- gawk "/[ \t]*<title>Index of \/(.+)<\/title>$/{r=gensub(/[ \t]*<title>Index of \/(.+)<\/title>$/,\"\\1/\",\"g\")}/alt=\"\[ \]\"> <a href=\"/{if(r){sub(/(alt=\"\[ \]\"^> ^<a href=\")/,r)}}1" index.txt>out.txt
复制代码
|