* 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