[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
- replacement for 'join'?, Bruno Haible, 2021/04/04
- Re: replacement for 'join'?, Bernhard Voelker, 2021/04/05
- Re: replacement for 'join'?, Bruno Haible, 2021/04/05
- Re: replacement for 'join'?, Paul Eggert, 2021/04/05
- Re: replacement for 'join'?, Bernhard Voelker, 2021/04/06
- Re: replacement for 'join'?, Paul Eggert, 2021/04/06
- Re: replacement for 'join'?,
Bruno Haible <=
- Re: replacement for 'join'?, Bernhard Voelker, 2021/04/07
- Re: replacement for 'join'?, Bruno Haible, 2021/04/07