From a4ce08bde0bcef664706b78146077ad7053a468b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 25 Jun 2023 18:54:22 +0200 Subject: Make sorting stuff much faster --- scripts/bilingual_sort.awk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/bilingual_sort.awk b/scripts/bilingual_sort.awk index 6f6f53a..7e50136 100644 --- a/scripts/bilingual_sort.awk +++ b/scripts/bilingual_sort.awk @@ -3,10 +3,8 @@ function bilingual_sort(i1, v1, i2, v2, l, r, f) l = cc2name[v1[0]] r = cc2name[v2[0]] - printf "%s\n%s\n", l, r |& "sort" - close("sort", "to") - "sort" |& getline f - close("sort", "from") + print l ":" r |& CMD + CMD |& getline f return f == l ? -1 : +1 } -- cgit v1.2.3