Add small helper script to keep lists sorted.

This commit is contained in:
joerg 2013-08-11 22:33:09 +00:00
parent 1896cba8c4
commit 3a93fc01e6
1 changed files with 7 additions and 0 deletions

7
distrib/sets/sort-list Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
while [ $# != 0 ]; do
( grep '^#' $1; grep -v '^#' $1 | LC_ALL=C sort ) > $1.tmp
mv $1.tmp $1
shift
done