Skip to content

Instantly share code, notes, and snippets.

@psenger
Last active February 11, 2024 22:41
Show Gist options
  • Save psenger/615a439742420bee663a99cec9bf5dab to your computer and use it in GitHub Desktop.
Save psenger/615a439742420bee663a99cec9bf5dab to your computer and use it in GitHub Desktop.
[Find files based on file extensions recursively] #macOS #UNIX #find

To find all files with the extensions .yaml or .yml recursively in Unix / Mac OSX, you can use the find command with this pattern:

find . \( -name '*.yaml' -o -name '*.yml' \)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment