sed

sed -i "s/old/new/g" fileName