I need to replace a word in a file like this
text text pc text text
text text pc text text
text text pc text text
i need to replace pc with pc1, pc2 .... etc
text text pc1 text text
text text pc2 text text
text text pc3 text text
How can i do this in one line?