I have 2 files and want to inner join them using awk
. This is written using sql server :
SELECT [file1.column1],[file2.column2] FROM file1
INNER JOIN file2 on file2.column1 = file1.column5;
This is the file i want to join:
so the key is column5 file1 and column1 file2.
How to write them in awk language?
Your help will be useful for me to learn this awk.
awk
(or the standardjoin
utility), things like what delimiter is used between the fields of the text matters.join
. can you provide in your question a sample of data, along with expected result ?