summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bilingual_sort.awk6
1 files changed, 2 insertions, 4 deletions
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
}