parsing using shell script

I have a file parameters.txt which contains

151524
151525

I have another file OID.csv which contains

NE        Version                    Object Type     ID             SDK param name               Object OID
test1       Start: 4.2 End: 4.2    pan                       151524        speed                 .1.3.6.1.2.1.2.2.1.5
jhhu       Start: 4.2 End: 4.2     pan                       151525        management type       .1.3.6.1.2.1.2.2.1.3

No i need to get the parameter from parameters.txt file and search for the it in csv file, when matched then take the oid for the matched parameter and write to another file which should be like this

151524 .1.3.6.1.2.1.2.2.1.5
151525 .1.3.6.1.2.1.2.2.1.3

Something like this:

awk 'NR==FNR{a[$1];next}$7 in a{print $7, $NF}' parameters.txt OID.csv

Im getting this error
awk: syntax error near line 1
awk: bailing out near line 1

Use nawk or /usr/xpg4/bin/awk on Solaris.

Thanks for that command. But now i have a seperate file
file1:
5629
22002

file2:
.1.3.6.1.4.1.637.61.1.23.3.1.6
.1.3.6.1.4.1.637.61.1.23.3.1.3
.
Now i need to join 2 files and the it should look like this
5629 .1.3.6.1.4.1.637.61.1.23.3.1.6
22002 .1.3.6.1.4.1.637.61.1.23.3.1.3

paste -d " " file1 file2
1 Like