Le site arthur.bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/arthur.bebou
Log | Files | Refs |
commit cbccc69f636974b14f71bcb9fc13397113fb5386 parent 6b5035faea9745e57ea2b44c373804a7da1acd3e Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Wed, 1 May 2024 13:17:50 +0200 Ajout slug pour insérer liens Diffstat:
A | slug | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/slug b/slug @@ -0,0 +1,9 @@ +#! /bin/sh + +find public -type f -iname '*.html' | +xargs grep -Er 'id="' | + cut -b7- | + fzy | + sed -E 's,:.+id=",#,;s/index.html//' | + cut -d'"' -f1 +