From 098125f46ff24921497f324eea3dd715ea77b2fd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 6 Mar 2012 16:12:19 -0500 Subject: [PATCH] helper to sort aspell dict --- .bin/aspell-sort-pws | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .bin/aspell-sort-pws 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 -- 2.39.5