summaryrefslogtreecommitdiff
path: root/bin/extra
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-13 12:55:55 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-13 12:55:55 +0200
commit6e1d0b1f334b8e2b57309cd3ee0c4c0ee2511f75 (patch)
tree53a2aa6bf42251b57813f6f0753d0839b8e2684e /bin/extra
parent3edcea302050baacb1b4ca0c042f9c2680a46386 (diff)
checkpoint
Diffstat (limited to 'bin/extra')
-rwxr-xr-xbin/extra/notes_index2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/extra/notes_index b/bin/extra/notes_index
index 9ccb3b2..da5c6cf 100755
--- a/bin/extra/notes_index
+++ b/bin/extra/notes_index
@@ -22,7 +22,7 @@ do
-printf '%f ' \
-exec grep '^# ' -m1 {} \; |
sed 's/\(.\+\.md\) # \(.\+\)/- [\2](\1)/' |
- sort -t '[' -k 2 >> index.md
+ sort -t '[' -k 2 -n >> index.md
if [ "$(find . -mindepth 2 -maxdepth 2 -type f -name '*.md' | wc -l)" -gt 0 ]
then