When you use '', there's no need to escape `|`, but I think you will have to add a `-E` option to `grep` (one way or another, just to be sure ;)