bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replacement for 'join'?


From: Bruno Haible
Subject: Re: replacement for 'join'?
Date: Tue, 06 Apr 2021 22:45:32 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-206-generic; KDE/5.18.0; x86_64; ; )

Paul Eggert wrote:
> Yes, 'awk' is the way to go if you want more 'join' capability (not just 
> treating the entire line as the key). But if the data are not large and 
> each key takes up the whole line, 'grep' should work fine.

The data is large, unfortunately. The two input files contain lists
of symbols, when constructing a shared library. GNU libunistring has
ca. 250 symbols.

For small data, I would have transformed the first file to a 'sed'
script, that I would then apply to the second file. But HP-UX 'sed'
has a limit of 100 -e expressions per invocation.

So, the solution with 'awk' is the best I can see. Thanks again, Berny!

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]