Also a useful thing is to search for strings within files: grep -rn '/path/to/somewhere/' -e "pattern"
Here for searching for strings in PDF-files: find /path -name '*.pdf' -exec sh -c 'pdftotext "{}" - | grep --with-filename --label="{}" --color "your pattern"' \;
sed Examples
List folders in folder and show each folder on one line. The software sed is piped and will replace all the slash characters with an empty character: ls -p | grep / | sed "s/\///g"