开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜