#!/usr/local/bin/zsh-5.2-dev-2

buf="$(<input1.txt0)"
word="$(<input2.txt)"

MATCH=""
buf="${buf#(#m)$word}"

echo "Processed: $buf"
