Parcourir la source

Add wiki-sections-sort

master
JustAnotherArchivist il y a 4 ans
Parent
révision
9b8f223776
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. +3
    -0
      wiki-sections-sort

+ 3
- 0
wiki-sections-sort Voir le fichier

@@ -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'

Chargement…
Annuler
Enregistrer