cnrtl dictionnaire - retour accueil
git clone git://bebou.netlib.re/cnrtl
Log | Files | Refs |
cnrtl-jeff (573B)
1 #!/bin/sh 2 3 archive=$HOME/archive/cnrtl 4 5 if test -z "$1"; then 6 recherche=$(ls $archive | dmenu -l 30 $DMENU_STYLE) 7 else 8 recherche="$1" 9 fi 10 11 if test -f $archive/$recherche; then 12 lynx -dump $archive/$recherche 13 else 14 lynx -dump https://cnrtl.fr/definition/$recherche | 15 grep -v Valid | 16 sed -n '/Entrez une forme/,/2012 - CNRTL/ p' | 17 tail -n+4 | sed -n '2,$ p' | 18 sed -e "s/♦/\n♦/g" \ 19 -e "s/[A-Za-z]\. -/&/g" \ 20 -e "s/\^1/¹/g" \ 21 -e "s/\^2/²/g" \ 22 -e "s/\^3/3/g" \ 23 -e "s/\^4/⁴/g" \ 24 -e "s/\^5/⁵/g" \ 25 > $archive/$recherche 26 fi 27 28 cat "$archive/$recherche"