take a word of a list and search for comparison in other lists

خرید بک لینک

I am trying to make this as simple as possible with Linux commands/script without much programming, but if it is not possible, just let me know.

I have a document with lots of words (in each line a word). I have to search each word in other documents where there is more info about the word and fill the first document with this info. I will put the example.

This is the first document I have

something
word
again
etc

And these are the other documents format

Tree 1.0
Simple -1.0
something 1.0
Agony 1.0
word -1.0
superuser 1.0
again 1.0
etc -1.0

I have like 50 of these documents. So my intention is to fill the first document with only the info about them so it gets like this

something 1.0 -1.0 1.0 1.0 ...
word -1.0 1.0 1.0 -1.0 ...
again 1.0 1.0 -1.0 ...
etc -1.0 ...

I usually work with awk, but I don't really know how to do this more complex task with that.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 210 تاريخ: يکشنبه 23 خرداد 1395 ساعت: 20:28

صفحه بندی