i want to change all the "B's" in a text file to be replaced witha specific number such as"1" but in the same text i would like to replace all the "C's" with "2" and "D's" with 3
Code:
sed 's/b/1/g' $fl.old > $fl
sed 's/c/2/g' $fl.old > $fl
sed 's/d/3/g' $fl.old > $fl
but i know that is not right.