- $(cat Wiki/"${info}${rev}" |while read line; do
- if (egrep -q '^ *###' <<<"$line"); then
- echo "<a class='i2' href='#$(sed 's,^ *### *,,;' <<<"$line")'>$(sed 's,^ *###,,' <<<"$line")</a><br>"
- elif (egrep -q '^ *##' <<<"$line"); then
- echo "<a class='i1' href='#$(sed 's,^ *## *,,;' <<<"$line")'>$(sed 's,^ *##,,' <<<"$line")</a><br>"
- elif (egrep -q '^ *#' <<<"$line"); then
- echo "<a class='i0' href='#$(sed 's,^ *# *,,;' <<<"$line")'>$(sed 's,^ *#,,' <<<"$line")</a><br>"
- fi
- done)