Anyone help me to write me a script using awk.
I have a flat file in file1, wherein I want to replace the 3rd field value of the file1. Below is the content of file1 and file 2, The output should create a file3 wherein the 3rd field already replace
File 1
ABC,AAA,A_12345,Joan
DCF,BBB,B_67890,Bryan
File 2 (lookup /reference)
A_12345 11111
B_67890 22222
Outfile (File3) should be
ABC,AAA,11111,Joan
DCF,BBB,22222,Bryan
Appreciate it a lot
Thanks