From: Ben Gras Date: Mon, 2 Apr 2007 16:23:55 +0000 (+0000) Subject: fix packman sort col, and make sort case-insensitive X-Git-Tag: v3.1.3~17 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=4928e42efbccdd6e077f1e9d2d181ece176097b9;p=minix.git fix packman sort col, and make sort case-insensitive --- 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