Filter to replace text on stdin - useful in git clean/smudge filters