October 24th, 2013, 01:51 PM
Have a look at sed ...
sed -e 's/paul/alex/g' -e 's/file/directory/g' YourInput.txt > NewFile.txt
Warning - from memory and not tested!
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc