The following is a simple implementation of a command line tool for performing search & replace operations in files.
Be aware that it performs this operation by loading the complete file into memory, and then writing it to the output file. This can be a lengthy operation, depending on file size and memory of the respective computer.