Can I return bash function while being in sed?
Can I return bash function while being in s开发者_如何转开发ed?
foo() {
sed ... label: 'NEED TO RETURN foo() HERE' ...
}
Use a label and a goto to exit your sed script, and then that will return to foo().
http://www.gnu.org/software/sed/manual/sed.html#Programming-Commands
精彩评论