commit 1a26a00bcd96911f602d2d2ff6990934e45decb0
parent 13269e18b4c8583e84dc0e78448b939d191b5120
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 18 Feb 2018 14:40:19 +0100
sfeed_update: run awk in C locale
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sfeed_update b/sfeed_update
@@ -36,7 +36,7 @@ merge() {
# order new items by timestamp (asc).
(sed 's@^@O @' "$1"
sed 's@^@N @' "$2") | \
- awk '!x[$7 " " $3 " " $4]++ && $1 == "N"' 2>/dev/null | \
+ LC_ALL=C awk '!x[$7 " " $3 " " $4]++ && $1 == "N"' 2>/dev/null | \
cut -f 2- | \
sort -t ' ' -k1n,1
}