SearchReplacePipe

Using sed:

cat blah | sed "s/AB cd/BD DE/"
Replaces "AB cd" with "BD DE" in file blah