Hi,
I want to match the pattern in file1 with file2 and print the value in file2 and paste in file1
file1:
ISHO RT SR Major 96.46778
Drop Call Rate CS Critical 0.5072662
ISHO RT SR Major 97.754364
Active HS-DSCH MAC-d Critical 1979.25
ISHO RT SR Major 97.31076
file2:
RRC Stup RNC Failures 0.1
Active HS-DSCH MAC-d 2000
Drop Call Rate PS 0.8
ISHO RT SR 96
I want the output:
ISHO RT SR Major 96.4 96
Drop Call Rate PS Critical 0.50 0.8
ISHO RT SR Major 97.75 96
Active HS-DSCH MAC-d Critical 1979.25 2000
ISHO RT SR Major 97.3 96
I tried grep each pattern:
grep -i 'pattern' file1 file2 ',awk '{$0}''
It's not working