awk + gsub to search multiple input values & replace with located string + extra text

Hi all.

I have the following command that is successfully searching for any one of the strings on all lines of a file and replacing it with the instructed value.

cat inputFile | awk '{gsub(/aaa|bbb|ccc|ddd/,"1234")}1' > outputFile

This does in fact replace any occurrence of aaa, bbb, ccc, or ddd with the value 1234.

What I would like is to keep the existing value and just add the replace value, i.e.

Any occurrence of aaa, bbb. ccc, or ddd would become: aaa1234 bbb1234 ccc1234 ddd1234 respectively.

Unfortunately I cannot get my head around how to do it.

Your input is gratefully received.

awk '{gsub(/aaa|bbb|ccc|ddd/,"&1234")}1' infile > outfile

--ahamed

Thanks ahamed101, simple as that huh! Works perfectly.

Mod - will ensure to follow correct posting procedure next time around.