in reply to simple text substitution.

perl -pi -e 's/text/newtext/g' /path/to/file

/J\