Module Name: src
Committed By: joerg
Date: Sun Aug 11 22:33:09 UTC 2013
Added Files:
src/distrib/sets: sort-list
Log Message:
Add small helper script to keep lists sorted.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/distrib/sets/sort-list
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: src/distrib/sets/sort-list
diff -u /dev/null src/distrib/sets/sort-list:1.1
--- /dev/null Sun Aug 11 22:33:09 2013
+++ src/distrib/sets/sort-list Sun Aug 11 22:33:09 2013
@@ -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