Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets Add small helper script to keep lists sorted.
details: https://anonhg.NetBSD.org/src/rev/b9d70efa0647
branches: trunk
changeset: 789261:b9d70efa0647
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Aug 11 22:33:09 2013 +0000
description:
Add small helper script to keep lists sorted.
diffstat:
distrib/sets/sort-list | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 7539f21e29c7 -r b9d70efa0647 distrib/sets/sort-list
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/sort-list Sun Aug 11 22:33:09 2013 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index