|
From: | Emanuel Berg |
Subject: | Re: Let ispell use use multiple dictionaries stored in different files. |
Date: | Sun, 08 Aug 2021 06:58:58 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hongyi Zhao wrote: > Yes, considering that the input word list files have already > well sorted in lexicographically order, I just want to > delete duplicates and leave the rest in their > original order. Not with two files the end result doesn't get sorted just by dropping the duplicates, $ echo '1\n2\n3\na\nd' > one.txt $ echo 'a\nb\nc\n1\n4' > abc.txt $ awk '!a[$0]++' one.txt abc.txt 1 2 3 a d b c 4 However ... $ sort -u one.txt abc.txt 1 2 3 4 a b c d -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |