logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

wordsort (148B)


  1. #!/bin/sh
  2. # Uses -z on sort(1), present in GNU, FreeBSD, OpenBSD, BusyBox ; absent in NetBSD
  3. tr ' ' '\000' | LC_ALL=C.UTF-8 sort -z | tr '\000' ' '