{for(i=j=50;l=NF-k++;i-=$i==a[l])j+=$j==a[k]}k=j>$!split($0,a)=k-j+i
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page