diff options
| author | Marc Vertes <mvertes@free.fr> | 2026-02-20 13:12:32 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2026-02-20 13:12:32 +0100 |
| commit | ba20223fd276b947686078b4a1a4848cc6773688 (patch) | |
| tree | 39906e7c5e04ccb07744ff22520dfbaca0d4fed9 /bin | |
| parent | cf8012edcb2df21eff06e8b287720fcff3e587cc (diff) | |
update
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/journeuf | 15 | ||||
| -rwxr-xr-x | bin/noaccent | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/bin/journeuf b/bin/journeuf new file mode 100755 index 0000000..6ad78b5 --- /dev/null +++ b/bin/journeuf @@ -0,0 +1,15 @@ +#!/bin/sh + +# Ajoute une entrée dans le fichier journal du mois et tag +an=$(date +%Y) +mois=$(date +%m) +jour=$(date +%d) +js=$(LC_TIME=fr_FR date +%A | awk '{print toupper(substr($0,1,1)) substr($0,2)}') +ms=$(LC_TIME=fr_FR date +%B | awk '{print toupper(substr($0,1,1)) substr($0,2)}') +file=$(echo "Journal${ms}$an" | noaccent) +if [ -f tags ]; then + tagline="${an}_${mois}_${jour} $file /$js $((0+jour))" + echo "$tagline" >> tags + LC_ALL=C sort -o tags -u tags +fi +echo "$js $((0+jour))" diff --git a/bin/noaccent b/bin/noaccent new file mode 100755 index 0000000..a780194 --- /dev/null +++ b/bin/noaccent @@ -0,0 +1,2 @@ +#!/bin/sh +sed 'y/àáâãäåèéêëìíîïòóôõöùúûüýÿçñàáâãäåèéêëìíîïòóôõöùúûüýÿçñ/aaaaaaeeeeiiiiooooouuuuyyçnaaaaaaeeeeiiiiooooouuuuyyçn/' |
