i want to replace multiple instances of strings with those from mapping file.
Mapping file
T0169 atr
T0175 klm
T0180 gtu
T0186 nik
T0201 nit
Working file-1
SN_abc.txt
T0169
SN_def.txt
T0175
T0201
SN_ghi.txt
T0169
T0180
T0175
SN_jkl.txt
T0180
T0201
T0175
output
SN_abc.txt
atr
SN_def.txt
klm
nit
SN_ghi.txt
atr
nik
klm
SN_jkl.txt
gtu
nit
klm
Things i tried by looking at similiar posts, but did not work
awk 'NR==FNR {a[$1]++; next} $1 in a' mapping file working file-1 > output.txt
join -1 1 -2 1 -a 1 -o 0,2.2 mapping file working file-1 > output.txt