Re: [dev] Find window with dmenu

From: <stanio_AT_cs.tu-berlin.de>
Date: Tue, 12 Feb 2013 17:08:02 +0100

* markus schnalke 2013-02-12 16:39
> The following is NOT portable:
>
> > sed -E 's/\s\+// ; /"(vim|surf):"/d'
>
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html
>
> If you want sed with Extended Regular Expressions, take awk. :-)

For the particular case of emulating these multiple grep pipes sed
should work fine. Something along the lines of "if line doesn't match a,
then if line doesn't match b, then if line doesn't match c then print
line":

        sed -n "/a/ ! {
                /b/ ! {
                /c/ ! { p }}}"

--s_
Received on Tue Feb 12 2013 - 17:08:02 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 21 2013 - 19:19:49 CET