sed query

hi
i had posted this earlier.. got no reply !!
how to change assigned value in a file using sed
suppose the file contains
age = 30;

how to change it to
age =50;

i tried sed 's/^age*./age =50;' filename but i am getting the o/p as

age =50; 30;

plz hlp!!

's/^age = 30/age =50;/'

You must have gotten an error form sed because the command was missing the ending /

I think asterisk and period are reversed. Try

sed 's/^age.*/age =50;/' filename

hi thnks tht worked!!

How to post a query in this forum.
please help