Make sorting locale independent.
This commit is contained in:
@@ -7,13 +7,15 @@
|
|||||||
# August 9, 2002
|
# August 9, 2002
|
||||||
##
|
##
|
||||||
|
|
||||||
|
LC_COLLATE=C
|
||||||
|
|
||||||
specialsort()
|
specialsort()
|
||||||
{
|
{
|
||||||
in=$1
|
in=$1
|
||||||
out=$2
|
out=$2
|
||||||
|
|
||||||
STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
|
STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
|
||||||
|
|
||||||
for i in $STRINGORDER;
|
for i in $STRINGORDER;
|
||||||
do
|
do
|
||||||
egrep '^\$str'$i $in | sort >> $out
|
egrep '^\$str'$i $in | sort >> $out
|
||||||
@@ -71,7 +73,7 @@ sortlang()
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
for i in "$@";
|
for i in "$@";
|
||||||
do
|
do
|
||||||
if [ ! -f $i ] ; then
|
if [ ! -f $i ] ; then
|
||||||
echo "$i is not a file, skipping"
|
echo "$i is not a file, skipping"
|
||||||
|
Reference in New Issue
Block a user