in reply to Search and Replace not working

Try perl -pe "s/FOO/123/g" in.txt > out.txt. Winders wants double quotes on the command line.

After Compline,
Zaxo