diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-22 16:33:11 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-22 16:33:11 +0100 |
commit | a3ea2d173b486ef2460e28108462c997fba90cc2 (patch) | |
tree | ae21e734233fe627813ac79d391526cc7e0bb622 /bin/extra/notes_index | |
parent | a5d21a49ccdc6141790085d4bd26b667b8d5618d (diff) |
checkpoint
Diffstat (limited to 'bin/extra/notes_index')
-rwxr-xr-x | bin/extra/notes_index | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/extra/notes_index b/bin/extra/notes_index index 28942cb..05a2452 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 -n >> index.md + sort -k 3 -n >> index.md if [ "$(find . -mindepth 2 -maxdepth 2 -type f -name '*.md' | wc -l)" -gt 0 ] then @@ -33,7 +33,7 @@ do -type d \ -not -name '.*'\ -printf '- [%f][%f/index.md]\n' | - sort -t '[' -k 2 >> index.md + sort -k 3 >> index.md fi cd - > /dev/null |