fix packman sort col, and make sort case-insensitive
This commit is contained in:
parent
70b95c31bc
commit
4928e42efb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue