grep
looks like regular expression matches in text, and is a very versatile tool.
Here is the GNU grep manual.
Here are some handy invocations:
adb devices | grep device$
grep -RF feedback
grep -RF --include '*.md' --exclude '*.html' feedback
grep -R content
adb devices | grep -o '^[a-zA-Z0-9]*'
ls | grep -v PAT
grep
is particularly useful when you stick to plain text.
grep
can print out matching file names, but if you need further processing you can turn to something like awk when you want to work on files and print out the per-file results.