Find Files and Text

Find File Names

Find png files recursively (current directory and sub-directories) and sort by path:

$ find . -name *.png | sort

Filter files having "deb" in file name ignoring text case and within current directory:

$ find . -maxdepth 1 -type f -iname "*deb*"

Count files with "AA" in name:

$ find . -maxdepth 1 -type f -name "*AA*" | wc -l

Find Text

Find text "update.auto" in all files recursively and show line number:

$ grep -r --color -n "update.auto" *

Find text "Deadline" in pdf-files recursively and show page number:

$ pdfgrep -n -r --include "*.pdf" "Deadline"