From 4928e42efbccdd6e077f1e9d2d181ece176097b9 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 2 Apr 2007 16:23:55 +0000 Subject: [PATCH] fix packman sort col, and make sort case-insensitive --- commands/scripts/packman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/scripts/packman.sh b/commands/scripts/packman.sh index d2823b643..037cee345 100644 --- a/commands/scripts/packman.sh +++ b/commands/scripts/packman.sh @@ -116,7 +116,7 @@ do cd $TMPDIR if [ -f "$cdpackages" ] then cat $cdpackages fi - ) | sort -t'|' +1 | awk '{ n++; printf "%d|%s\n", n, $0 }' + ) | sort -f -t'|' +0 | awk '{ n++; printf "%d|%s\n", n, $0 }' ) >$TMPF highest="`wc -l $TMPF | awk '{ print $1 - 1 }'`" awk -F'|' <$TMPF '{ printf "%3s %-15s %s\n", $1, $2, $3 }' | more -- 2.44.0