fix packman sort col, and make sort case-insensitive

This commit is contained in:
Ben Gras 2007-04-02 16:23:55 +00:00
parent 70b95c31bc
commit 4928e42efb

View file

@ -116,7 +116,7 @@ do cd $TMPDIR
if [ -f "$cdpackages" ] if [ -f "$cdpackages" ]
then cat $cdpackages then cat $cdpackages
fi 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 ) >$TMPF
highest="`wc -l $TMPF | awk '{ print $1 - 1 }'`" highest="`wc -l $TMPF | awk '{ print $1 - 1 }'`"
awk -F'|' <$TMPF '{ printf "%3s %-15s %s\n", $1, $2, $3 }' | more awk -F'|' <$TMPF '{ printf "%3s %-15s %s\n", $1, $2, $3 }' | more