]> git.wh0rd.org - home.git/blame - .bin/aspell-sort-pws
helper to sort aspell dict
[home.git] / .bin / aspell-sort-pws
CommitLineData
098125f4
MF
1#!/bin/bash
2set -ex
3cd ~/
4file=".aspell.en.pws"
5header=$(head -1 ${file})
6sed 1d ${file} | LC_ALL=en_US sort > ${file}.tmp
7(
8echo ${header}
9cat ${file}.tmp
10) > ${file}
11rm ${file}.tmp