i have an existing users ID and wanted to change those IDs to users name for e.g.
UserID.txt
Group1 = 1234,1002,2004
group2 = 3214,0032,6632
1234 = Read
6632 = Write
Input_file.csv
search for column1 and replace with column2 from Input_file.csv
1234 onetofour
1002 ten2
2004 tennyfour
3214 threefouteen
0032 thirtytwo
6632 Sixtytwo
Using the Input_file.csv records, i want to replace IDs to names inside UsersID.txt
Expected Output:
Group1 = onetofour,ten2,tennyfour
group2 = threefouteen,thirtytwo,Sixtytwo
onetofour= Read
Sixtytwo = Write
I prefer shell scripting here, kindly suggest for the same.
Thanks