Le site web bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/bebou
Log | Files | Refs |
faq (486B)
1 #! /bin/sh 2 3 . ./common 4 5 save_md() { 6 sed -E "/^##[^#]/ i [↩ retour en haut](#)- - -" | 7 sed '0,/retour en haut/ { /retour en haut/ d }' | 8 lowdown >> "$the/$1" 9 } 10 11 grep -E "^##+" "$FILE" > $the/titles 12 < $the/titles lowdown | 13 grep -v '^$' | 14 cut -d'"' -f2 | 15 sed -E 's/^/(#/;s/$/)/' > $the/slugs 16 sed -E 's/^##/ /g;' $the/titles | 17 sed -E 's/#/ /g' | 18 sed -E 's/ (\w)/[\1/;s/$/]/' | 19 sed -E 's/([^* ])/* \1/' | 20 paste - $the/slugs | 21 sed '$ a - - -' | 22 save_md tdm 23 24 . "$@" 25 26 layout