This question is closely related to [this question](https://stackoverflow.com/questions/64848448/write-information-from-a-lookup-file-into-another-file):

There are many tsv files containing classification elements like this:

doc1.tsv

```
<http://uri.gbv.de/terminology/bk/86.56> 
<http://uri.gbv.de/terminology/bk/58.28>

```

There is also a lookup table that additionally contains the classnames:

lookup.tsv

```
<http://uri.gbv.de/terminology/bk/44.38>        Pharmakologie
<http://uri.gbv.de/terminology/bk/44.43>        Medizinische Mikrobiologie
<http://uri.gbv.de/terminology/bk/58.28>        Pharmazeutische Technologie
<http://uri.gbv.de/terminology/bk/86.56>        Gesundheitsrecht. Lebensmittelrecht

```

[Raman Sailopal](https://stackoverflow.com/users/7840440/raman-sailopal) already gave a very good hint on the solution which is the following:

```
awk 'FNR==NR{ urls[$1]=$2 } FNR!=NR { print $1"\t"urls[$1] }' lookup.tsv doc1.tsv >> result.tsv

```

Unfortunately, the command just gets the first string up to a blank, but as in "Gesundheitsrecht. Lebensmittelrecht" the whole text is required. What has to be added?