Skip to content

Instantly share code, notes, and snippets.

Last active Sep 24, 2019
What would you like to do?
use find utility to search directory for a file with a type and string

This lets us find all files which match have filetype and search string in their file names.

find . -iname '*.filetype' -iname '*search string*' -print

working example to find .pdf file that contain algorithm in the name

find . -iname '*algorithm*' -iname '*.pdf' -print

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment