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
“^ is the start of line expression and $ is the end of line expression, in this case we are asking for a line containing the line beginning and line ending with nothing in between.”