Browse Source

Add wiki-sections-sort

master
JustAnotherArchivist 4 years ago
parent
commit
9b8f223776
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      wiki-sections-sort

+ 3
- 0
wiki-sections-sort View File

@@ -0,0 +1,3 @@
#!/bin/bash
# Sort == level-two wiki sections == alphabetically while keeping all section contents (including subsections) in the given order
tr '\n' '\r' | sed 's,\r== ,\n== ,g' | sort | tr '\r' '\n'

Loading…
Cancel
Save