Use the t command after each s command to branch to the end of the script if a substitution was made:
sed -e 's/something/else/;t' \ -e 's/one/two/;t' \ -e 's/two/three/;t' <<<"one" Use the t command after each s command to branch to the end of the script if a substitution was made:
sed -e 's/something/else/;t' \ -e 's/one/two/;t' \ -e 's/two/three/;t' <<<"one"