Howto split a string on a multi-character delimiter in bash?
<p>Why doesn't work the following bash code?</p>

<pre><code>for i in $( echo "emmbbmmaaddsb" | split -t "mm"  )
do
    echo "$i"
done
</code></pre>

<p>expected output:</p>

<pre><code>e
bb
aaddsb
</code></pre>