sed -e 's/expression1/expression2/' source_file > target_file