mks - Getting SED b command to respect ";" -


using mks sed windows, this;

type q:\temp\allrequired.m3u | sed -en "/\\curtain\\/!b;s_^.._q:_p" 

fails with

sed: label ";s_^.._q:_p" not found in script 

how can b command respect command separator ";" , hence act no label?

i'm aware there alternatives b in case. demo of b issue.

currently i'm using clumsy workaround:

type q:\temp\allrequired.m3u | sed -en -e "/\\curtain\\/!b" -e "s_^.._q:_p" 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -