How to recognize a string and move it within a line?

Guys, can you pls help?.
My need is to find a string in a line, cut it and append to the end of the line where it was found. I guess the sed command can handle this, but how?..

e.g. in the line

AZOAR1_1_PE2569,HBG316802,partial,Q5P1X0,"Dihydrolipoamide dehydrogenase protein";"Glutathione reductase protein"

I need to move �,partial� to the end to get

AZOAR1_1_PE2569,HBG316802,Q5P1X0,"Dihydrolipoamide dehydrogenase protein";"Glutathione reductase protein",partial

Thanks in advance!

echo 'AZOAR1_1_PE2569,HBG316802,partial,Q5P1X0,"Dihydrolipoamide dehydrogenase protein";"Glutathione reductase protein"' | sed 's/\(.*\),partial\(.*\)/\1\2,partial/'

another way

# echo 'AZOAR1_1_PE2569,HBG316802,partial,Q5P1X0,"Dihydrolipoamide dehydrogenase protein";"Glutathione reductase protein"' | sed 's/.*\(,partial\).*/&\1/;s/,partial//'

Gorgeous :slight_smile: i love unix. Many thanks!