find ./ -type f -exec sed -i 's/ul class="litype_1" type="1"/ol/g' {} \;
Copy the Code
replace all <ul type="1" class="litype_1"> tags (typically, html produced by Discuz) in current directory to <ol>
Currently I don't find a way to replace those matching end tags </ul> to </ol>(maybe need a xml parser)
but it should be fine in most cases (browsers fix tags automatically )