Le site arthur.bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/arthur.bebou
Log | Files | Refs |
commit 2253e0e6dba2aa3e805d3ad1d82ee6ddbee890d4 parent 482c7bae12acb68cfaa5598953cd1951be4aac04 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Tue, 22 Oct 2024 00:03:49 +0200 Un meilleur script pour lancer un article On a direct la date maintenant waouh Diffstat:
M | newarticle | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/newarticle b/newarticle @@ -2,6 +2,6 @@ read -p 'nom : ' name mkdir -p contents/${name:?'Faut un nom'} -cp layouts/barearticle contents/$name/index.sh +< layouts/barearticle sed -E "/publication:/ s,$,$(date +'%Y-%m-%d')," > contents/$name/index.sh vim contents/$name/index.sh