I have the following structure of data
HG2 MET
HG1 THR
HG2 THR
HG2 GLN
The desire output would be
HG1 MET
HG1 THR
HG2 THR
HG1 GLN
somehow I need to do the following
for i in MET GLN
do
sed 's/HG2 $i/HG1 $i/g'
done
or if it is possible to specify that I do not want to change the HG2 for THR but still change all the other instead