From: Mike Frysinger Date: Tue, 6 Mar 2012 21:12:19 +0000 (-0500) Subject: helper to sort aspell dict X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=098125f46ff24921497f324eea3dd715ea77b2fd;p=home.git helper to sort aspell dict --- diff --git a/.bin/aspell-sort-pws b/.bin/aspell-sort-pws new file mode 100755 index 0000000..36a1286 --- /dev/null +++ b/.bin/aspell-sort-pws @@ -0,0 +1,11 @@ +#!/bin/bash +set -ex +cd ~/ +file=".aspell.en.pws" +header=$(head -1 ${file}) +sed 1d ${file} | LC_ALL=en_US sort > ${file}.tmp +( +echo ${header} +cat ${file}.tmp +) > ${file} +rm ${file}.tmp