editing expressions within a file
I've got a simple question it may seem dumb.
I would like to change the within a bash_profile file a line to another line.
ex: export JAVA_HOME=/usr/java/jdk1.5.0_09/ to export JAVA_HOME=/usr/java/jre1.5.0_15/
I know I could simply use ex in linux and search for jdk1.5.0_09 and replace to jre1.5.0_09 but I would like to do the entire expression.
Just wondering is it possible if so can it be done with ex or do I need to use sed command?
Thx for reading my post.