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

# Check for bsd system
ABSD=0
[[ `uname` = "Darwin" ]] && ABSD=1
[[ `uname` = "SunOS" ]] && ABSD=1
setopt extended_glob

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

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

echo "Processed: $buf"
