This is an old revision of the document!
Grep for x or y, eg:
ls -lR | grep "x\|y"
Removing blank lines from output:
grep -v "^$" filename