]> git.wh0rd.org Git - home.git/commitdiff
helper to sort aspell dict
authorMike Frysinger <vapier@gentoo.org>
Tue, 6 Mar 2012 21:12:19 +0000 (16:12 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:44 +0000 (15:36 -0400)
.bin/aspell-sort-pws [new file with mode: 0755]

diff --git a/.bin/aspell-sort-pws b/.bin/aspell-sort-pws
new file mode 100755 (executable)
index 0000000..36a1286
--- /dev/null
@@ -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