diff --git a/wiki-sections-sort b/wiki-sections-sort new file mode 100755 index 0000000..0b0ec22 --- /dev/null +++ b/wiki-sections-sort @@ -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'